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: 

JIRA Server API - change Reporter on create issue

Gualter Augusto
August 8, 2018

Hi,

I am using jira-connector to POST a create issue request to JIRA API on a JIRA SD project.

 

I am able to create the issue but cannot set the Reporter field in the createIssue request. I have tried the following:

 

{
fields: {
project: {
key: 'HD'
},
summary: 'CHAT 17809746070',
description: '<p>hi</p>',
issuetype: {
name: 'Inbound'
}
},
reporter: {
name: 'Anonymous User'
}
}

 

I have also tried email and nothing works. How do I set the Reporter on issue creation?

The authenticated user that is trying to POST has Admin and SD user privileges and the Reporter field is visible on ticket creation.

 

Also, if the Reporter I set in the POST does not exist, will JIRA SD create it a customer (like the native JIRA behaviour does)?

 

Thanks

1 answer

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

0 votes
Answer accepted
Gualter Augusto
August 10, 2018

UPDATE:

Was able to fix this calling Jira Service Desk API directly.

 

The body looks like this:

{ 

serviceDeskId: "MY_SD_ID",

requestTypeId: "MY_REQUEST_ID",

requestFieldValues: {

summary: "CHAT 17809746070" },

raiseOnBehalfOf: "Anonymous User" 

}