You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
I was setup my Jira to have the following hierarchy:
Portofilo Epic -> Feature Epic -> Story -> Sub-task.
Portofilo Epic is a parent link of Feature Epic,
Feature Epic is a Epic link of the story.
The Feature Epic and Story requires some status relationship. It means that Story can't move to Ready until Feature Epic status is in Ready.
How do I write a condition in the workflow to handle that? I know I will have to write a JQL Query to do that but I'm not understand enough to write one for it.
Please Help! Thank you.
Just to be clear, you want a condition script so that the workflow transition is not visible for Story unless the linked Epic is also in Ready status?
A simple scripted condition should work for this.
cfValues['Epic Link'].status.name == 'Ready'
When I have multiple clauses I like to separate them like this:
//if you need to compare a singel value against a list you can use the "in" operator in groovy
def okStatusList = ['Ready', 'Implement']
def parentStatusIsOk = cfValues['Epic Link'].status.name in okStatusList
def otherCriteria = <expression that returns a true or false>
//evaluate the criteria if both must be true
parentStatusIsOk && otherCriteria
//evalue the criteria is either must be true
parentStatusIsOk || otherCriteria
If you want to display the button and provide a visual warning for the user, then put the same script in a simple scripted validator instead. Otherwise, the user may not understand why sometimes the button is visible and not other times.