Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

API change author of issue

PL October 7, 2016

I would like to create an issue over the api as user "API12" but change the author to another user.

Is it possible?

2 answers

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

3 votes
Answer accepted
Suresh (Hoffensoft)
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.
October 7, 2016

Yes it is possible.

Try like below

http://localhost:2990/jira/rest/api/2/issue
 
I have used Admin user for authenticating this API

Request body will be 

{
    "fields": {
       "project":
       { 
          "key": "DPT"
       },
       "summary": "REST Testing",
       "description": "Creating of an issue with different Reporter using the REST API",
       "issuetype": {
          "name": "Task"
       },
       "reporter":{"name":"user1"}// user1 is the normal user
   }
}
0 votes
PL October 9, 2016

When I try this I get:

Field 'reporter' cannot be set. It is not on the appropriate screen, or unknown.

I have the "Modify Reporter" permission.

PL October 10, 2016

I changed the Auth method from HTTP to cookie and it works...

Danilo Casassa
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
March 15, 2019

Your field "reporter" not is visible when is created any issue.. Only fields visible on create a new issue work like showed before.

TAGS
AUG Leaders

Atlassian Community Events