Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 
  • Community
  • Q&A
  • Jira
  • Questions
  • Can we put a control in a way that the teams can not start a new Sprint unless close the last Sprint

Update a version with PUT API

Gustavo Barrios
September 22, 2023

Hi community! I am trying to update some version fields but it gives me the following error about this code

def result = put("/rest/api/3/version/${releaseID}")
.header('Content-Type', 'application/json')
.body([
fields: [
description: Descripcion,
name: Nombre,
startDate: FechaInicio,
releaseDate: FechaRelease

]
])
.asString()

2023-09-22 12:41:19.243 INFO - PUT /rest/api/3/version/10675 asString Request Duration: 391ms
2023-09-22 12:41:19.244 WARN - PUT request to /rest/api/3/version/10675 returned an error code: status: 400 - Bad Request
body: {"errorMessages":["Invalid request payload. Refer to the REST API documentation and try again."]}
2023-09-22 12:41:19.244 INFO - Serializing object into 'interface java.util.Map'

 

1 answer

1 accepted

0 votes
Answer accepted
Alexey Matveev
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 Champions.
October 5, 2018
Kishore Mavuri
October 5, 2018

Thanks Alex! This would help greatly.

Alexey Matveev
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 Champions.
October 5, 2018

You are welcome! If my answer helped you, kindly mark my answer as accepted.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events