changes.mady.by.user Radhika Vijji.
Saved on Jan 30, 2018
changes.mady.by.user David Fischer
Saved on Mar 22, 2018
...
Field name: Labels
Labels
Field ID: labels
labels
Description: Labels is a Set of labels.
get("labels") or get("Labels")
Set<Label>
Example: Get the first label of the issue:
if (issue.get("labels")) { issue.get("labels").first() }.label
getAsString("Labels") or getAsString("labels") that returns a String with comma separated label names:
getAsString("Labels") or getAsString("labels")
String
Examples: Labels of the issue
issue.getAsString("labels")
getLabels() that returns a Set<Label>
getLabels()
Example: Get the last label of the issue
if(issue.getLabels()) { issue.getLabels().last() }.label
Example: All the labels of the issue separated by a comma:
issue.getLabels().join(",")