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

How to create an issue with a Fix Version/s value using the REST API

Steve Melcher March 31, 2015

I need to be able to create an Epic in JIRA Agile using the REST API. We have Fix Version/s as a required field for Epics.

How do I specify the Fix Version/s field in the application/JSON notation in the REST API Browser?

When I use the Request Body below I get the error: {"errorMessages": [],"errors": {"Fix Version/s": "Field 'Fix Version/s' cannot be set. It is not on the appropriate screen, or unknown."}}.

I've tried variations of escape characters and quotes around Fix Versions to no avail.

{
    "fields": {
       "project":
       {
          "id": "10800"
       },
       "summary": "No REST for the Wicked.",
       "description": "Creating of an issue using ids for projects and issue types using the REST API",
       "issuetype": {
          "id": "6"
       },
       "customfield_10007": "This is an Epic Name",
       "Fix Version/s": [{ "name": "Product Backlog"}],
       "components": [{ "name": "A0.DOC.DESIGN" }, { "name": "B0.DOC.DESIGN" }]
   }
}

4 answers

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

1 vote
Lori Cho June 24, 2015

Hello.  I finally figured out how to set a version on an already created ticket and thought I would let you know in case it is helpful at all.  I was getting the same error you were when i had the wrong capitalization and spacing for "fixVersions".  

{ "fields":

    {

       "fixVersions": [{"name":"3.6.1"}]

     }

}

0 votes
Hina May 19, 2019

{

"update":{ "fixVersions" : [

{"add":{"name": "3.0"}}
]
}


}

it will only work when 3.0 version will already exist in list

0 votes
Steve Melcher March 31, 2015

I get a similar error when I try "fixVersion", "fixVersions", "Fix Versions", or "Fix Version".

 

{
"errorMessages": [],
"errors": {
"Fix Versions": "Field 'Fix Versions' cannot be set. It is not on the appropriate screen, or unknown."
}
}

0 votes
Jaime S
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
March 31, 2015

Hi, Steve.

 

I think the '/' may be the problem. 

Looking at this documentation, it seems to me that you should use 'Fix Versions', without the '/', though it's not clear.

Maybe you could try it.

I hope it was helpful.

Kind regards,
Jaime Kirch da Silveira
Atlassian Cloud Support

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

TAGS
AUG Leaders

Atlassian Community Events