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

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

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

Description field becomes empty when doing state transitions from Jira REST API Edited

Hi All,
I am getting a weird issue in Jira cloud. We have imported content from Clear Quest to Jira cloud. Imported fields with content including description field. we are consuming Jira REST API urls for attachments and state transitions.
Here when we are doing state transitions (Submitted to Closed) , when the transition is done , Description field data is clearing . I am not updating desc from input json.

Is this manadate to update the description field from state transitions input JSON?

Pls let me know…

Thanks
Vishnu

1 answer

0 votes

Hello @vkalakuntla

Can you share with us the REST call structure you are using? Description fields should not disappear when transitioning, you are completely right there.

Hi,

Thanks for your reply. Pls find the below request details.

When i do these transitions (Submitted --> Resolved, Resolved --> Closed) Desc is getting cleared. But all other transitions are working fine without any issues.

Hello again,

I see two things here. First, a side note. You are adding an expand query parameter on the Transition POST function. This will not do anything in particular. It is only part of the Get Transitions API.

Secondly, I can't see the body you are sending with your POST request. This is where I believe the crux of the problem might be. If you see the docs for the transition API you will see that only the fields included in the `fields` block of the body will be updated. I would imagine that you have something like:

fields: {

   ...

   description: '',

   ....

}

 in the body you are sending through. Can you share the body you are sending with your request?

This is the JSON i am passing for state transition.

{
"update": {
},
"transition": {
"id": "{0}"
}

}

I'd give it a go sending only: 

{
"transition": { "id": "0" } }

I have provided below json for issue transition with out updating , but the same issue . it is very frustrating.Seems like even for issue transition it is updating description field.

{
//"update": {},
"transition": {
"id": "{0}"
}
//"fields": {
//}
}

}

IssueTransition_History.jpg

Like Fernando Bordallo likes this

This is very odd indeed. From what you are sharing there seems to be an underlying issue we should tackle.

I believe the best option we have here is to bring in a support engineer to the conversation. Can you please open a support ticket for this? 
https://support.atlassian.com/contact

🙇‍♂️

Sure . i will raise the support ticket. Hope you are not charging anything for this support ticket . Pls confirm so that i can raise the ticket.

Thanks

Like Fernando Bordallo likes this

No charges :) Feel free to contact our support team when you face a roadblock like this 🚀

Suggest an answer

Log in or Sign up to answer
TAGS

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you