Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Assign a new ticket to a specific agent based on values choose in the issue fields

This workaround is meant to help projects where it is necessary to assign a new issue/request directly to a specific agent to better organize the queue management.

For a such scenario, I used ProForma with Automation For Jira(A4J). Also, I used as an example a form related to an IT - Change request, where the customer will select in a radio buttons fields the option of IT change. For which option chose the new request will auto-assign to a specific agent. This method can be used for other purposes (eg. issues with approvers).


Important related documentation:

Building Forms in ProForma
Working with Service Projects
Working with Software & Business Projects
ProForma & A4J
How AFJ works
Smart values
Advanced field editing - JSON

Workaround steps:

  • Form settings:
    • It will be necessary to link the form fields that you would like to attribute to the assignee agent (this is necessary for the A4J to be able to get the answers from the fields):Screen Shot 2021-11-12 at 15.56.24.png
    • Besides the option of attributing an issue/request to a form, it will also be necessary to not lock the form on issue creation (this is important for having communication between ProForma and the A4J):Screen Shot 2021-11-12 at 16.03.41.png

  • A4J settings:
    • The best way to trigger this automation rule is by an 'Issue created' action, for another one it may not work as expected. Also, note how much of "Re-fetch issue data" was used on this rule:Screen Shot 2021-11-12 at 16.14.30.png
      Note: Because ProForma updates the issue and linked fields with a milliseconds delay after the issue is created, when more information a form has, more "Re-fetch issue data" actions will be necessary to add so that this delay is rewarded and the automation rule can get the form values.
    • Using Smart Values it’s possible to get the information selected by a customer in a field. The magician trick here is using the ProForma proprieties in JSON to get the form information and translate it to the A4J, as I will show below:

      - Form JSON:
      Screen Shot 2021-11-15 at 10.18.42.png

      - A4J Log Action showing how it will read forms properties:Screen Shot 2021-11-15 at 10.20.01.png
      Note: To find the custom field ID please take a look at this documentation. Also, to get the ProForma proprieties you can access it using this URL below: 

      https://<atlassianCloudAddress>/rest/api/2/issue/<issue-key>/properties/proforma.forms

    • Now that you already know how A4J will read the form option chosen, in this example the choice ID "10012" from the "customfield_10007". You can use an Advanced compare condition to create an If/Else case, as I show below:Screen Shot 2021-11-15 at 10.22.40.pngScreen Shot 2021-11-15 at 10.26.12.png

    • This workaround will work as shown in the screen recording below:

4 comments

florianper Community Leader Nov 16, 2021

Wow that will be very usefull for sure !  I'll save this for future use ! 

Thanks ! 

this is great!!

@Bruno Altenhofen , thanks for sharing!

Like Bruno Altenhofen likes this

That is amazing! 

Comment

Log in or Sign up to comment
TAGS
Community showcase
Published in Jira Service Management

JSM Jira Automation: How to Send SLA Breached Notifications

Hi Everyone, In   this tutorial,  we will show you how you can monitor an SLA, and send notifications before or after the SLA has been breached.   SLA Threshold Trigger The SLA t...

656 views 5 12
Read article

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you