Macro code in ad-hoc workflows: approvals

I have designed a workflow that requires approvals in 2 states: 'Review and Recommend' and 'Sign Off'

I would like to enhance my code such that when the state transitions from 'Review and Recommend' to 'Sign Off', approvals are automatically assigned to two different users (Jack and Jill) in the 'Sign Off' state. I see the concept mentioned here, however I am unsure how to write the code to do it. Here is my current code. Any help is appreciated. Thanks in advance.



    {state:In Progress}


    {state:Review and Recommend|approved=Sign off Approval|rejected=In Progress|taskable=true}

        {approval:Review and Recommend|assignable=true}


    {state:Sign Off|approved=Approved|rejected=In Progress|completed=Approved|taskable=true}








2 answers

1 accepted

Hi Conor,

Here's what you want to change your "Review" approval to:

{approval:Review|user=&USERNAME1, USERNAME2}

Where USERNAME1 and USERNAME2 are the usernames for the users you want automatically assigned.


Thank you Miguel!

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Julia Dillon
Posted Tuesday in Jira

Tell us how your team runs on Jira!

Hey Atlassian Community! Today we are launching a bunch of customer stories about the amazing work teams, like Dropbox and Twilio, are doing with Jira. You can check out the stories here. The thi...

247 views 1 18
Join discussion

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