I have a custom field called "Is Change Required?" which has "Yes" and "No" as options. If the response is "Yes" I would like to automatically assign the label "ChangeRequired" to the ticket. The question is on a request through a Service Desk Portal.
How do I do this using either a postfunction or a behaviour?
I am on Jira Data Center so I do not have access to the Autonation Plugin unfortunately.
Hi @Anuj Balaji
I am not sure about the Service Desk Portal-part but for a postfunction in a workflow using Script Runner it works fine in my tests like this (Groovy):
def user = ComponentAccessor.jiraAuthenticationContext.getLoggedInUser()
CustomField radioButton = ComponentAccessor.getCustomFieldManager().getCustomFieldObjectByName("Change");
if(radioButton == null)
LabelManager mgr = ComponentAccessor.getComponent(LabelManager.class)
mgr.addLabel(user, issue.id, 'ChangeRequired', false)
As soon as the issue has the value "yes" for the Custom Field "change" a label is set during a transition of your choise using a post function.
You might need to tweak it a bit for Custom Field names and possible further requirements that might come up in future - the above one is pretty basic.
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events