Use case: User want to have a unique value on all work items for a specific custom field. We need to check whether there are any other work item with same field value, if yes then add a comment on the newly created work item and move the issue to done/duplicate status.
We can use the following JQL query (lookup issues) and advanced compare condition achieve this requirement.
"Global field for Team project[Select List (multiple choices)]" = {{triggerissue.customfield_10470}} and issuekey != {{triggerIssue.key}}
Need to replace the actual custom field ID on above JQL.
Mohanraj Thangamuthu
1 comment