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,299,402
Community Members
 
Community Events
165
Community Groups

Automation to add the reporter from manager field

Edited

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

3 votes
Answer accepted

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

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

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

Glad to hear that!

Like Aaron Geister likes this

Thanks for the assistance. 

Suggest an answer

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

Coming Soon: Insight Changing to Assets

The 2020 acquisition of Mindville added powerful asset and configuration management capabilities to Jira Service Management in the form of Insight. Following the completion of that integration, custo...

393 views 3 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