Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

JMWE Jira Expression Workflow Condition - Check if issues exist with following parameters

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?

image.png

1 answer

1 accepted

0 votes
Answer accepted

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:

  • customfield_10500 is not empty
  • customfield_10500 contains an issue key (is customfield_10500 a Single-line Text custom field?)
  • the issue whose key is contained in customfield_10500 must contain TT in its Summary

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'.

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.

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 :) ).

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
PERMISSIONS LEVEL
Site Admin
TAGS
Community showcase
Posted in Jira Software

Presenting the "Best of 2020" Jira Software roundup!

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 ...

7,022 views 8 28
Join discussion

Community Events

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

Events near you