Hi there,
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'.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Unfortunately, this is simply impossible on Jira Cloud. You want to look at "child" issues according to the "Advanced Roadmap" hierarchy, and that hierarchy is not available from Jira expressions.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Ahhh OK. Thank you David. We are instead now looking at using a Boolean or Yes/No dropdown field to demonstrate this within the parent issue rather than looking at the child issues.
I'll give that a go (should be much easier :) ).
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.