Hello there,
I am seeking a sample code to restrict the RESOLUTION field values based on the SELECT LIST custom field.
Custom Field Name: Subcategory
Anyone please provide a sample scriptrunner code?
Regards
Sami.
Hey @Sami
I believe this might be close to what you are looking for.
importstaticcom.atlassian.jira.issue.IssueFieldConstants.RESOLUTIONif(getActionName() =="Terminate") {getFieldById(RESOLUTION).setFieldOptions(["Won't Fix","Incomplete","Cannot Reproduce"])}
You can find more information here: Restricting Priority and Resolution
You can also search the Adaptavist Library.
Please let me know if you run into any issues.
Thanks,
Brittany
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.