I'm a newbie with JMWE Jira Expressions and i'm trying to build a Workflow Condition which is as follows:
If issues exist which have the current issue key in a customfield, and summary contains 'TT', then allow the transition.
I've trounced the documentation and can't see to find what I'm looking for in terms of a JQL query. Any ideas?
Hi @Ahmad Sidawi ,
you can't use JQL queries in Cloud conditions and validators. That's a limitation of Jira Cloud.
However, if I understand correctly, you want to allow the transition only if:
Is that correct? If so, this is the Jira expression you're looking for:
issue.customfield_10500 != null && new Issue(issue.customfield_10500).summary.match(".*TT.*")
Pretty close. Customfield_10500 is a Parent Link field with a key.
Several issues might have the same Parent Link.
I'm currently looking at the Parent, and I want to check if any issues with that Parent Key contain TT.
So if the Parent has a key of GT-1010, i want to check any other issues which have GT-1010 in customfield_10500, and if any of those issues contain 'TT'.
Catch up with Atlassian Product Managers in our 2020 Demo Den round-up! From Advanced Roadmaps to Code in Jira to Next-Gen Workflows, check out the videos below to help up-level your work in the new ...
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