Hi
I am needing to set a label on an issue in my jelly script, I know how to get the labels, but I cant find anything in the javadocs that allows me to create a new label or get an existing label to set on an issue:
<core:invoke on="${issueKey}" method="getLabels" var="labels" />
<!-- Get or create a label -->
<core:invoke on="${labels}" method="add" var="flag">
<core:arg type="com.atlassian.jira.issue.label.Label" value="???" />
</core:invoke>
<core:invoke on="${issueKey}" method="setLabels">
<core:arg type="java.util.Collection" value="${labels}" />
</core:invoke>
Any help would be very much appreciated, thank you!