It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Accessing Versions "Start Date" from Jira Software Cloud REST API

Hi,

In Jira you can create versions and give them "Start Date" and "Release date":

I1sdmz1.png

I need to access those dates from the REST API. I found a call that looks perfect, except the "Start Date" field is missing for the results:

/rest/agile/1.0/board/11/version?maxResults=50&startAt=0&released=false
{ 
"maxResults": 50,
"startAt": 0,
"isLast": true,
"values": [
{

"self": "https://<myinstance>.atlassian.net/rest/api/2/version/10006",
"id": 10006,
"projectId": 10005,
"name": "V1",
"description": "V1",
"archived": false,
"released": false,
"releaseDate": "2019-04-28T00:00:00.000Z"
},

{
"self": "https://<myinstance>.atlassian.net/rest/api/2/version/10007",
"id": 10007,
"projectId": 10005,
"name": "V2",
"description": "V2",
"archived": false,
"released": false,
"releaseDate": "2019-05-30T00:00:00.000Z"
}
]
}

 Is there any way to get that missing field? Another API call? A hidden parameter? Some black magic maybe? :)

 

Thanks!

1 answer

1 accepted

0 votes
Answer accepted

Hello Josselin,

I hope you are having a nice day.

You must use the Expansion feature in the JSON REST call to get the hidden parameter StartDate, however, this parameter is only available for Create Version or Update Version.

You can check the documentation below for more details:

JIRA Rest API reference

Let me know if this information helps!

Hi,

Thanks, I somehow completely missed the call "Get Version" from that API. It does give me the startDate, so that's nice.

I will have to use that call for every version since the start date is not returned in the call that returns multiple versions.

 

Thanks!

You are welcome, Josselin.

Have a nice day and please let us know if you need help with anything else regarding the REST API calls. :)

Suggest an answer

Log in or Sign up to answer
This widget could not be displayed.
This widget could not be displayed.
Community showcase
Published Feb 26, 2019 in Jira Software

How to prevent the propagation of unused project schemes, workflows & screens in Jira software

Atlassian ranks project attributes as the third most important factor impacting performance in the category of data. It’s not surprising, since project attributes are precisely the rules used to ma...

1,091 views 1 13
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you