The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

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

Automation to add the reporter from manager field

A A Ron Geister _Trundl_
Community Champion
April 28, 2022

I have been trying to add the reporter based on the manager field after the creation of a ticket. 

Testing this running a manual triggered automation. 

in the reporter field I used:

{{Manager.customfieldID}} But this didn't work and I tried to use {{issue.Manager.customerfieldID}} 

What am I missing here. Do I need to add a string?

As of now it runs the automation but adds(Anonymous) to the reporter.

2 answers

2 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

3 votes
Answer accepted
Garrett McCreery
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 Champions.
April 28, 2022

Hi Aaron.

If you can use this url (along with a chrome plug in called JSONVue, or any other JSON viewer) you can see what smart value you should use. (replace your instance name and issue key). I use this all the time when I am creating/using smart values.

https://{your instance name}/rest/api/2/issue/{issue key}?expand=names

In the screen shot below, I am looking for the status text of the issue that I am on (DVS-21). When using JsonVue plugin, I can roll over the value and it displays the full path to the smart value in the bottom left hand corner (fields.status.name). So my smart value would be {{issue.fields.status.name}}. If you can't get JsonVu, use another Json viewer and collapse and expand the tree and walk down the dotted path (fields -> status -> name).

screenshot.png

A A Ron Geister _Trundl_
Community Champion
April 28, 2022

Maybe I should asked how do I display the value of the user from Manager field to Reporter? 

So if I am the Manager I need that to be added to the Reporter? But it has to be for each issue the manager then becomes reporter with automation.

Also I can't use a chrome add-on without security review so that is out of the question at this time. 

0 votes
Answer accepted
A A Ron Geister _Trundl_
Community Champion
April 28, 2022

I figured it out you have to use:

{{issue.customfield_ID}} in the reporter field. I also backed this up with advance compared condition. 
image.png

Garrett McCreery
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 Champions.
April 28, 2022

Glad to hear that!

A A Ron Geister _Trundl_
Community Champion
April 28, 2022

Thanks for the assistance. 

TAGS
AUG Leaders

Atlassian Community Events