Hi everybody,
I'm trying to add labels to an issue that i'm creating using Clones an issue and Links and Create a subtask scripts post functions.
Any ideas how to do it?
I should use addLabel or setLabels?
Thanx in advance,
Kostas
You could try that but they take com.atlassian.jira.issue.label.Label objects. Better to use https://developer.atlassian.com/static/javadoc/jira/5.0/reference/com/atlassian/jira/issue/label/LabelManager.html#setLabels(com.atlassian.crowd.embedded.api.User, java.lang.Long, java.util.Set<java.lang.String>, boolean, boolean)
If anyone else bumps into this, there is nice code here by Henning: https://answers.atlassian.com/questions/172565/any-way-to-remove-a-label-on-resolution
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.