Forums

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

Automation for JIRA rule

Janakiraman S
Contributor
July 28, 2021

Hi Team,

I am trying to create tasks in a different project based on update to a Checkbox custom field (cf). I have options A,B,C and D for this field. 

I tried using the If / Else blocks and JQL conditions from A4J for setting up this rule. 

e.g. If ("cf" = A), create issue of type A1

Else If ("cf" = A and "cf" = B), create issue of type A2

However, A4J doesn't seem to respect the Else If and ends up creating A1 even if the custom field has values A & B. Here is my configured rule. 

Appreciate if any of you have some recommendations to work this around. 

Thanks & Regards,

Janaki.

image.png

2 answers

1 accepted

2 votes
Answer accepted
Jack Brickey
Community Champion
July 28, 2021

The issue here, I think, is that you will never hit the “A & B” since the “A” will always succeed first. You need to be specific in the condition. Try changing the first one to - cf = A & cf != B, and change the second to cf != A & cf = B. 

Janakiraman S
Contributor
July 28, 2021

Hi @Jack Brickey ,

Thank you, I applied this logic and it works so far. 

1 vote
Gaurav
Community Champion
July 28, 2021

Hello @Janakiraman S 

I have implemented something similar where I am using the check box options to decide the  decide approvers for a change request.

While implementing I am using <CustomField_CheckBox> equals "value", for the If condition.

Please refer the screen shot for exact usage.

Kindly let me know if this helps or if you have any other questions.

Automation Rule.JPG

Janakiraman S
Contributor
July 28, 2021

Hi @Gaurav ,

Thank you for your suggestion. However, the suggestion from Jack was closer to my use case. Appreciate your feedback too.

Best Regards,

Janaki.

Suggest an answer

Log in or Sign up to answer