Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Two Checklist conditions in worklow with OR (Any of the following conditions) is working ?

cyrille tabary
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
February 19, 2025

Hello, before I raise a support ticket, can someone confirm that using two Cheklist conditions with OR (Any the following conditions) does not work ? 

Example of settings :

image.png

 

First condition :

 

image.png

Second Condition :
image.png

Expected result: no display of the Ready transition
Result obtained: the Ready transition is displayed while no item of Definition of Ready is checked

image.png

Thank you in advance for your help

1 answer

Suggest an answer

Log in or Sign up to answer
0 votes
Maxime Lefebvre _Okapya_
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.
February 19, 2025

Hi Cyrille,

Developer from Checklist for Jira here.

The reason why it does not work in your situation is that there are no mandatory items in your checklist.

When there are no mandatory items at all, the "All mandatory items must be checked" condition will pass so users can move to the next workflow.

  • If you do not use the mandatory toggle in items, then you can remove the condition, and only keep the "All items checked" condition.
  • If you sometimes use mandatory items and sometimes not, then unfortunately I don't think you can setup the conditions you need.

    Because what you would actually need in this case is a condition that checks if:
    • There are no mandatory items AND all items are checked.
      OR
    • There are mandatory items AND all mandatory items are checked.

If you have ScriptRunner installed, you can use a scripted condition to achieve what you want. Here's an example of a validator (a condition's code is similar) from our documentation,.

Let me know if that helps and don't hesitate if there's anything else.

Kind regards,
Maxime

cyrille tabary
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
February 20, 2025

Hello Maxime, thanks for your answer, but we would have liked to avoid using groovy (via JMWE); The level of English is too high for me. I will wait for my colleagues to return from vacation. Indeed, when "All items in Definition of Ready must be checked" and "All mandatory items in Definition of Ready must be checked." are used alone, it works, but we have several use cases:
- the checklist is empty: the transition must be active;
- the checklist only contains optional items: the transition is only active if they are all checked;
- the checklist contains mandatory items (and optionally optional items): the transition is only active if all mandatory items are checked;

I thought that by using "Any of the following conditions" I could get the following behavior :

All items in Definition of Ready must be checked.FALSETRUEFALSETRUE
All mandatory items in Definition of Ready must be checked.FALSEFALSETRUETRUE
Ready transition is activeFALSETRUETRUETRUE



Maxime Lefebvre _Okapya_
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.
February 20, 2025

Hi Cyrille,

Unfortunately, I don't believe you can achieve what you need with "Any of the following conditions".

You will need to use Groovy scripts. 

Kind regards,
Maxime

TAGS
AUG Leaders

Atlassian Community Events