Jira API - Trying to update filed and transition

Yarden H June 18, 2019

Hi, 

I'm trying to update an issue field and transition.

I used POST call to '/api/2/issue/ISSUEID/transitions'

{
"fields": {
"summary": "test"
},
"transition": {
"id": "1"
}
}

I get the following error:

"Field 'summary' cannot be set. It is not on the appropriate screen, or unknown"

I saw in the documentation that I need to expand the transitions.fields but I didn't managed to get it to work.

Thanks

1 answer

1 accepted

1 vote
Answer accepted
Aleksandr Zuevich
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.
June 18, 2019

Hi,

If a field is not configured to appear on the transition screen, then it will not be in the transition metadata, and a field validation error will occur if it is submitted. So I suppose you have to invoke to APIs (one for updating the summary, and other for making transition) or configure transition screen to show the field.

Yarden H June 18, 2019

Hi,

Thanks for the reply.

How can I configure the fields to appear on the transition screen?

Aleksandr Zuevich
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.
June 18, 2019
Yarden H June 24, 2019

Thank you, It worked!

Suggest an answer

Log in or Sign up to answer