I am looking to add a set field value to constant or groovy expression post function which will check if the issue type = X and if the condition is true then a certain field gets populated.
I tried with the groovy expressions issue.getIssueTypeObject.name == "X" and issue.issueType.name=="X". Do you have any idea why isn't working?
I am using JIRA 7.2.6
I thought you are using script runner plugin thus I shared the groovy script with you, but it seems you are using JMWE plugin which also supports groovy script (new feature in the plugin)
Please use this syntax
return (issue.get("issuetype").getName() == "Bug")
Atlassian Summit is an excellent opportunity for in-person support, training, and networking.Learn more
Hello! I'm Rayen, a product manager at Atlassian. My team and I are working hard to improve the trial experience for Jira Software Cloud. We are interested in talking to 20 people planning t...
Connect with like-minded Atlassian users at free events near you!Find a group
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no AUG chapters near you at the moment.Start an AUG
You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs