Forums

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

Macro code in ad-hoc workflows: approvals

Conor Cassidy October 2, 2014

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

2 votes
Answer accepted
Miguel Reimer
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 2, 2014

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

0 votes
Conor Cassidy October 2, 2014

Thank you Miguel!

Suggest an answer

Log in or Sign up to answer
TAGS
atlassian, jira cloud certification, managing jira projects, jira project administration, jira cloud exam, atlassian certification, agile project management, jira workflows, jira permissions, jira training, jira cloud skills, atlassian learning

Become a Certified Jira Service Project Expert 🦸🏻‍♂️

Validate your expertise in managing Jira Service Projects for Cloud. Master configuration, optimize workflows, and manage users seamlessly. Earn global 🗺️ recognition and advance your career as a trusted Jira Service management expert.

Get Certified! ✍️
AUG Leaders

Atlassian Community Events