Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,556,149
Community Members
 
Community Events
184
Community Groups

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:

6 comments

Florian PEREZ
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Nov 16, 2021

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

Thanks ! 

Alexander Bondarev
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.
Nov 17, 2021

@Bruno Altenhofen , thanks for sharing!

Like Bruno Altenhofen likes this

That is amazing! 

Charles Trilha
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
Mar 03, 2022

Amazing!

Paul Krueger
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.
Apr 11, 2022

If you want to avoid the repetitive re-fetching of data, you can have the form populate a specific hidden field when the form is submitted. Then, instead of using the Issue Created trigger, you can use the Field value changed trigger. I pair that with a JQL match of "created > -2m" just to make sure we're dealing with a new issue.

I've never seen that process fail to access form values.

Like # people like this

Comment

Log in or Sign up to comment
TAGS
AUG Leaders

Atlassian Community Events