How to use workflows conditions : value field: parent ?

Clément FREDERIC September 21, 2023

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

4 answers

0 votes
Marcel Rossouw February 21, 2024

@Clément FREDERIC might still be valuable to know that if you add multiple conditions with Option ID for each (include the parent and child value ID's individually) then select 'any of the conditions' seems to work for me. Might not be exactly what you originally wanted but seems there is no way to include parent and child values in one Condition.

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.
September 21, 2023

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.

Clément FREDERIC September 22, 2023

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

Clément FREDERIC September 22, 2023

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.
September 21, 2023

Hi @Clément FREDERIC 

 

you can use post function Linked Transition(JSU) 

Clément FREDERIC September 21, 2023

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