Forums

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

Automation rule for field conditions not working

Steve Suranie
Contributor
April 20, 2022

I created a rule that is triggered by a task transitioning from In Review > Done. The rue checks the following conditions: 

  • If the task has the label: external-docs
  • If the field: Pre Publication Checks (a collection of four check boxes) contains none of Legal Reviewed

And if those conditions are met I do an action: Transition the issue to and I select In Review and post a comment that the initiator needs to get legal to review and external documents. 

I ran a test where the conditions were met and the rule was not triggered. Am I doing something wrong in the set up? 

3 answers

1 accepted

1 vote
Answer accepted
Steve Suranie
Contributor
April 21, 2022

Going to leave the solution just in case someone else runs into a similar issue. 

The reason why this rule was not working is because I did not have a transition from Done back to In Review when the conditions I had in place failed. Once I added it the rule worked. 

 

workflow2.png

0 votes
Filipi Lima
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
April 21, 2022

HI, Steve, I see you already said you were going to engage support but I'm a bit too curious for my own good :)

Make sure the project you're running your tests is in the scope of the Rule. At times we create the rule in the wrong project and it gets confusing why it's not working.

Also, try editing the rule (assuming this is a test project!) to run whenever it goes from any status into Done.

0 votes
Trudy Claspill
Community Champion
April 20, 2022

Hello @Steve Suranie 

Can you please provide screen images that shows the complete automation rule and the details of each step?

Also can you provide the details of an issue that you transitioned from Review to Done that you believe did not trigger the rule?

And lastly, can you check the Audit Log for the rule to confirm that the rule actually was not triggered, vs. triggered but failed or triggered but no actions taken.

Steve Suranie
Contributor
April 20, 2022

Hey @Trudy Claspill 

Here's the screen cap of the rule settings: 

settings.png

Steve Suranie
Contributor
April 20, 2022

Here's the test ticket:

ticket.png

Steve Suranie
Contributor
April 20, 2022

Here's the audit log: 

log.png

Trudy Claspill
Community Champion
April 20, 2022

Was the issue in the In Review status and transitioned from there to Done after you created the rule? As that is the trigger condition and the rule was not triggered, that would suggest that you did not make that exact transition.

Or is the rule not turned on?

Or does the rule not apply to the project that contains this issue?

Steve Suranie
Contributor
April 20, 2022

You cannot get to Done status without going to Review first, our workflow doesn't allow any other path to Done. 

The rule is turned on. 

This is the only project. 

Trudy Claspill
Community Champion
April 20, 2022

Is this a Team Managed project or a Company Managed project?

Can you show us the workflow diagram showing the status transitions?

Can you show us the History for this issue that shows the transition from In Review to Done?

Have you tried transitioning another issue in the same way to see if you get the same result?

Steve Suranie
Contributor
April 20, 2022

It is a Team Managed project (I'm the team - for now) : )

Here's the history of the test ticket: 

history.png

Steve Suranie
Contributor
April 20, 2022

I also ran another test with the same results. 

Steve Suranie
Contributor
April 20, 2022

Here's the workflow: 

workflow.png

Trudy Claspill
Community Champion
April 20, 2022

I am stumped.

I have created a simple Automation rule in a test Team Managed project where the rule is triggered by a transition between statuses where there is only one path, like yours. 

I see an entry in the Audit Log for the rule getting triggered when I make that transition. And there is not entry for other transitions because, of course, the rule is not triggered in those cases.

I recommend that you contact Atlassian Support directly on this one.

Steve Suranie
Contributor
April 20, 2022

Thanks, appreciate you spending the time this afternoon. 

Suggest an answer

Log in or Sign up to answer