How to solve the fact that conditions do not apply to triggers!

I have a fairly complex workflow for a story. The developer gets the story and its subtasks assigned to them, and then they create feature branches from the story. When a pull request into the feature branch is approved, the ticket moves to InReview and a feature branch build is performed. (We are working on a Java desktop app.)  Then the story goes through a bunch of SQA steps, and finally, the feature branch is approved to merge into develop with a pull request. I am trying to have triggers that can differentiate the pulls to move the stories into their correct status. This works, but I need all subtasks to be code complete before I want to allow the story to proceed. So, if an engineer performs the pull request, I want to have a condition to make sure the subtasks of the story are in the correct status.

 

As it turns out, Conditions DO NOT EFFECT TRIGGERS! Does anyone have any idea how to handle this issue?

 

Thank you!

1 answer

0 vote

I am afraid you will have to modify your workflow to, maybe, introduce a new workflow state. Triggers are designed to automate transitions and so they will override conditions and validators.

In this case, you might need two states - one indicating that the PR is merged and another to indicate that all the subtasks are done. How you incorporate it into your workflow depends on your overall process.

Suggest an answer

Log in or Join to answer
Community showcase
Emilee Spencer
Published Friday in Marketplace Apps

Marketplace Spotlight: DeepAffects

Hello Atlassian Community! My name is Emilee, and I’m a Product Marketing Manager for the Marketplace team. Starting with this post, I'm kicking off a monthly series of Spotlights to highlight Ma...

56 views 0 3
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot