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

Change Project via API

Linell Bonnette July 21, 2015

Let's say I've got an issue, JIRA-1, that is currently in project "Project 1". It needs to be in "Project 2" instead.

Following along with the documentation, it looks like issuing a PUT request to the issue with the following data should work:

 

```

{

"fields": {

  "project": {

    "key": "PROJECT-2"

    }

  }

}

```

 

In fact, doing this results in the correct `204 No Content` response that we're expecting. But the project hasn't actually changed. I've tried changing the data to include everything about Project 2, still to no avail. There are no errors.

 

Can I accomplish this via the REST API?

2 answers

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

0 votes
Andreas Ebert
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.
July 21, 2015

Moving issues ist not possible with the REST API, as asked previously.

It appears that PUTing to the issue is only available for fields which are on the edit screen configured for that issue, see the description of the PUT method. And the project field cannot be one of those fields.

0 votes
Robert Massaioli _Atlassian_
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
July 21, 2015

I'm not sure if this is possible. You should look into: https://jira.atlassian.com/browse/JRA-16494

TAGS
AUG Leaders

Atlassian Community Events