Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ```java
- Job j = r.getParent();
- if (j instanceof Project) {
- Project p = (Project) j;
- Label label = p.getAssignedLabel();
- if (label != null) {
- String name = p.getAssignedLabel().getName();
- System.out.println(name);
- }
- }
- if (j instanceof FreeStyleProject) {
- FreeStyleProject p = (FreeStyleProject) j;
- Label label = p.getAssignedLabel();
- if (label != null) {
- String name = p.getAssignedLabel().getName();
- System.out.println(name);
- }
- }
- ```
Add Comment
Please, Sign In to add comment