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.
static com.atlassian.jira.issue.IssueFieldConstants.RESOLUTION if (getActionName() ==<span> </span>"Terminate") { <br> getFieldById(RESOLUTION).setFieldOptions(["Won't Fix",<span> </span>"Incomplete",<span> </span>"Cannot Reproduce"])<br>}import
static
com.atlassian.jira.issue.IssueFieldConstants.RESOLUTION
if
(getActionName() ==<span> </span>
"Terminate"
) {
<br>
getFieldById(RESOLUTION).setFieldOptions([
"Won't Fix"
,<span> </span>
"Incomplete"
"Cannot Reproduce"
])<br>
}
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
It looks like you're new here. Sign in or register to get started.