Missed Team ’24? Catch up on announcements here.

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

How do I set affects version/s using REST API?

Linus Lindroth September 2, 2015

I can't figure out how to set the affects version/s using REST API to JIRA. Does anybody know?

It seems like we are suppose to use the field versions but use some kind of parameter called affects version? I can't find this anywhere in the REST API documentation.

3 answers

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

2 votes
Answer accepted
Linus Lindroth September 2, 2015

My bad, it was a semicolon in the wrong place, this is the syntax

"versions": [
            {
                "id": "10000"
            }
        ],
....etc
Sravya Vuggina September 13, 2018

Hey @Linus Lindroth,

Although this question was posted quite a while ago, I thought it is better off trying to reach out here than creating a new one. 

I am trying to create an issue using Rest API and affects version/s field is mandatory in our create issue screen. Tried using the above mentioned syntax but I get this

error {"errorMessages":[],"errors":{"versions":"Version id '15911' is not valid"}} 

The id I used is from projectversion table,is that the right id? Also tried with name instead of id and got similar error.

{"errorMessages":[],"errors":{"versions":"Version name 'Example 1.3.1.4' is not valid"}}

How can Affect Version/s value be set? 

Linus Lindroth September 14, 2018

Sorry but I no longer work with this so I don't know.

Sravya Vuggina September 14, 2018

No problem. Thanks for responding! :) 

0 votes
Peter Andreasson
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 28, 2016

Try this...

 

"versions": [
            {
                "name""xxxxx"
            }
        ],
....etc
0 votes
NJ March 25, 2016

Hi Linus,

It would be a great help if you can share the entire api call you have been using for this

TAGS
AUG Leaders

Atlassian Community Events