Are you in the loop? Keep up with the latest by making sure you're subscribed to Community Announcements. Just click Watch and select Articles.

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

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

How to use workflows conditions : value field: parent ?

Hello,

I'm struggling to get the workflow condition, value field, for the field parent working.

 

My purpose: I want to allow a workflow transition only if my issue has a specific parent.

I tried to set different Value Field conditions on my transition, but none worked.

  • Condition, comparison number
    • Field: Parent
    • Condition: =
    • Value: 12345
    • Type of comparison: Number
  • Condition, comparison string
    • Field: Parent
    • Condition: =
    • Value: XX-1234
    • Type of comparison: String
  • Condition, comparison string
    • Field: Parent
    • Condition: =
    • Value: Summary Of My Parent
    • Type of comparison: String

Workflow transition Condition.png

None of these conditions let my issue with parent 12345 transition to my status.

 

I guess I'm doing something wrong, but I can't see what.

Could you help me ?

Thanks in advance, have a nice day

Clément

3 answers

0 votes
Pasam Venkateshwarrao
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
Sep 21, 2023 • edited

Hi @Clément FREDERIC 

 

you just need to put OptionID of second level option to condition's value field.

Screenshot 2023-09-22 at 10.16.47 AM.png

 

if you click your parent option new page with child options is displayed. And you need to get the child option's ID and use it for your condition. For example you can have following cascading values

  • A (id = 10000)
    • AA (id = 10001)
    • AB (id = 10002)
  • B (id = 10003)
    • AA (id = 10004)
    • AB (id = 10005)

So you can see that AA option for parent A has a different ID than for parent B. In case you want to build a condition for A->AA you need to use id=10001 for condition.

Thanks again,

I tried also with OptionID, does not work ether.

if you click your parent option new page with child options is displayed. And you need to get the child option's ID and use it for your condition. For example you can have following cascading values

  • A (id = 10000)
    • AA (id = 10001)
    • AB (id = 10002)
  • B (id = 10003)
    • AA (id = 10004)
    • AB (id = 10005)

So you can see that AA option for parent A has a different ID than for parent B. In case you want to build a condition for A->AA you need to use id=10001 for condition.

I'm not sure to understand this statement.

Are A and B epics (or any kind of parent issues) ?

And AA, AB some stories (or bugs, or some other type of child issue) ?

 

If that is so, how can an issue have 2 differents ticket as parent ?

I mean AA seems to have as parent issue A and B ?

I'm a bit confused here.

 

Thanks,

Clément

0 votes
Reshma Begum _Appfire_
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
Sep 21, 2023

Hi @Clément FREDERIC ,

You can use the Linked Issues Condition from JMWE app with the jira expression:

issue.parent.key == "XX-1234"

 2023-09-21_19-40-58.png

Hope this helps!

Thanks,

Reshma

Hi @Reshma Begum _Appfire_  and thanks for your answer!

Indeed this is what I'm trying to achieve.

However should not this be working without app ? Unless I misunderstand the condition, value field for parent.

Anyway I will take a look at the plugin you mentioned.

Thanks,

Clément

Like Reshma Begum _Appfire_ likes this
0 votes
Pasam Venkateshwarrao
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
Sep 21, 2023

Hi @Clément FREDERIC 

 

you can use post function Linked Transition(JSU) 

Hi @Pasam Venkateshwarrao

Thanks for your answer.

However I don't understand how to use a post-function to manage the transition of that issue.

A post function apply after the transition, so is your idea after the transition of the issue to put it back on the initial status ?

 

I'll try to be clearer on my request ;-)

I want my issue transition only to be possible if my issue has a specific parent, that's why I was trying with a condition.

For instance :

  • Story_A
    • Parent: Allowed_Epic
  • Story_B
    • Parent: Forbiden_Epic

So on this example, the transition to status MyStatus should only be allowed for Story_A but not for story_B.

I'm acting directly on the stories, not on the parent or children of the stories.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Site Admin
TAGS
AUG Leaders

Atlassian Community Events