OR condition in the worklfow Validator

Karishma Khanna
Contributor
November 12, 2024

Hi, 

I have to apply a validator for a workflow transition where I want to make sure all mandatory checklist items are checked.

However there are cases where the checklist is not applicable so we also have an optional checklist item in the list which says- "Check this box if the below checklist does not apply"

I want to somehow validate that if this particular checkbox is checked then skip verifying the rest of the checklist items else all the mandatory items should be checked before transitioning. Let me know if there is a way to do so.

2 answers

1 accepted

0 votes
Answer accepted
Adaeze_Jude_HEROCODERS
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.
November 14, 2024

Hi @Karishma Khanna ,

If you use Checklist for Jira Free, PRO, or Enterprise, you can achieve this with an automation rule.

Since the Checklist items are mandatory, you can use an automation rule to change the items to optional when the "Check this box if the below checklist does not apply" item is checked. This would allow the issue to be transitioned to the next status.

With Checklist for Jira, Local Templates can be manipulated using the Checklist text custom field. To allow this, you need to enable the "save local checklist items to Jira custom field." in Global settings.

I have exported the automation rule and will gladly share it with you.

Please reach out here if you would like to explore this further.

Karishma Khanna
Contributor
November 17, 2024

Hi Adaeze, yes love to explore the automation rule for this.

Adaeze_Jude_HEROCODERS
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.
November 24, 2024

Hi @Karishma Khanna 

Could you reach out here, I cannot attach the export here.

0 votes
Angela Thomas_Seibert Group
Atlassian Partner
November 14, 2024

hi @Karishma Khanna

Thank you for sharing this use case. I understand that you want to ensure all mandatory checklist items are checked before transitioning, except a specific part of the checklist that is deemed not applicable.

I can't suggest a direct way with validators. However, there is a simpler alternative. With the Didit Checklists for Jira app, you would have the option to 'skip' tasks and not just check them off as complete.
Skipping tasks in Didit Checklists for Jira.png
Our suggestion: Your team can skip the optional task items and the checklist would be deemed 'complete'. This approach enables the issue transition to proceed as intended, and the audit logs will still reflect which items were skipped for full transparency.

Additional recommendations: If desired, you could set a condition on the validator to restrict transitions when a certain number of tasks (e.g., more than three) have been skipped.

Let me know if this might suit your needs or if there’s anything more I can assist with.

Suggest an answer

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

Atlassian Community Events