Forums

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

Change Reporter using Automation

Anthony Polakos
Contributor
February 11, 2019

Overview

I'm using a Jira Cloud app (Relay Intake Forms) to create rich external forms to submit to my Service Desk. 

Issue

One of the downsides of that app seems to be no field mapping for reporter. So all issues created via the form are from a single app-created user. 

I obviously want my users to be able to access the issues they created, so I need to change the Reporter to who is actually submitting these forms.

Failed Resolution

I created a custom field for "user email".  I'd like to create an automation that upon issue creation, changes the reporter to the contents of the custom field "user email".

I'm not too hip to the exact code I should be using (or if this is even possible).

Here's what I tried under advanced:

{
"fields": {
"reporter": {
"emailAddress": "{{customfield_116130}}"
}
}
}

 

How far off base am I?  🙂

 

Here's my automation, I have a precondition that first adds the customfield for the username and email address as a customer to Jira Service Desk (this part works!). 

Then it checks if  the reporter is the "system defined user" from the other app I use for user forms.  If it is, then change the user to the customfield for emailaddress.

I've tried various ways of inserting the reporter (email address, name, key) and none have worked.  It currently is successful on editing the issue field and changing the reporter, but the reporter now shows as "Anonymous" in the issue..

 

Screen Shot 2019-02-13 at 4.02.59 PM.png

 

 

2 answers

0 votes
Rahul Arora
November 5, 2014

Do you mean JIRA source code or XML Files & VM templates?

0 votes
Norman Abramovitz
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.
November 5, 2014

You have ability to edit JIRA source files and be able to maintain your changes through JIRA upgrades?

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events