Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. Add JSU's Follow Up Transition post function in the Submit Budget transition to follow up next transition. The post function will evaluate the workflow conditions of all the next transitions on the target status of the current transition. If exactly one condition is valid, that transition will be triggered as a "follow-up" transition.

  2. Set up two different Value Field Conditions for the transitions, "To be approved" and "Approve". You can choose the amount of budget above which your budget needs approval. In this case, we enter 1,000:
    1. If Budget > 1,000 on the To Be Approved transition, then the status moves to "TO BE APPROVED".
    2. If Budget <= 1,000 on the "Approve" transition, then the status moves to "APPROVED".

      Info

      We have carefully set these conditions so that always exactly one condition is valid. This way, the Follow Up Transition will always trigger one of these two transitions. The workflow will never be stuck at the DECISION status.


  3. Publish your workflow.
  4. Add the Budget custom field to your project screen before you move on with your issue creation. See Atlassian's guide to creating custom fields to learn how.

Test your workflow

  1. Create an issue in your project and set your budget to 2,000. Start progress and check the status. JSU has automated the DECISION with the follow-up transition and moved your issue to "TO BE APPROVED" based on the conditions you set up before.
  2. You can do the same by setting your budget to 800. Start progress and check the status. The automation turned the issue status to "APPROVED"

...