Forums

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

Checking for Reporter Status in an automation

A client told me that one of their automations was failing but only very sporadically. One of the steps in the automation clones the current work item and then links the cloned version to the trigger issue. The failure came when the Reporter from the trigger issue was no longer an active user in the system. This caused the automation to fail on these very occasional occurrences. 

The simple solution is to set the initiator as the reporter on the cloned work item. If you want to do this, when you Clone the work item, set the Reporter in the Clone ticket to {{initiator.accountId}}.

In the case of my client, this solution works. However, in many cases, you really do want the original Reporter to be carried over to the cloned work item. In that case, you need a few steps to manage this potential problem. Following is a step-by-step guide to addressing this problem. 

Snag_3e53dbf3.png

 

1. Get the status of the Reporter

The first step is to determine whether the Reporter is active or inactive. This Webhook call will respond the needed information.

Snag_3e5f8741.png

You will need to create the Authorization information. To do that, see this page.

2. Create a variable with the original Reporter account Id

Snag_3e72c8b3.png

Steps 3 and 4. Check whether the user is active. If not, then use the Initiator as the reporter

Snag_3e89717b.pngSnag_3e898ea7.png

Step 5: Clone the work item with the newReporter variable as the Reporter.

Snag_3e89b9af.png

 

3 comments

Bill Sheboy
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.
April 28, 2025

Hi @Derek Fields _RightStar_ 

Thanks for your article.  You may want to move this one from the New-to-Jira group to the Automation product area:

https://community.atlassian.com/forums/Atlassian-Automation/ct-p/automation

Kind regards,
Bill

Valecia Goodnow
Contributor
April 28, 2025

Good info

__ Jimi Wikman
Community Champion
April 28, 2025

Excellent article @Derek Fields _RightStar_ !

 

Comment

Log in or Sign up to comment
TAGS
AUG Leaders

Atlassian Community Events