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.

 

{workflow:adhoc=true}

    {state:In Progress}

    {state}

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

        {approval:Review and Recommend|assignable=true}

    {state}

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

        {approval:Review|assignable=true}

    {state}

    {state:Approved|taskable=true}

    {state}

{workflow}

 

 

2 answers

1 accepted

This widget could not be displayed.

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.

Thanks,
Miguel

This widget could not be displayed.

Thank you Miguel!

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted yesterday in Jira

What modern development practices are at the heart of how your team delivers software?

Hey Community mates! Claire here from the Software Product Marketing team. We all know software development changes rapidly, and it's often tough to keep up. But from our research, we've found the h...

67 views 0 1
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