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

Why can't Description field be set?

Although Description shows up in a "editmeta" list for the issue as having "set" as a legitimate operation a set fails with:

"errorMessages":[],"errors":{"Description":"Field 'Description' cannot be set. It is not on the appropriate screen, or unknown."

In response to:

curl -D- -u "user:password" -X PUT -H "Content-Type: application/json" --data '{"update":{"Description":[{"set":"A description"}]}}' 'http://host:8090/rest/api/latest/issue/DAR-14'

Any ideas why?

Thanks.

4 answers

1 accepted

0 votes
Answer accepted

Works with update as well. Try this

curl -D- -u admin:admin -X PUT --data "{\"update\":{\"description\":[{\"set\":\"This works!\"}]}}" -H "Content-Type:application/json" http://localhost:8080/rest/api/2/issue/ST-1

I thought I tried that before but guess I did something different (maybe had description as upper case Description when trying that exact format) but it works now.

Thanks

Hi Nathaniel,

Just got it working with this command. Try it out

curl -D- -u admin:admin -X PUT --data "{\"fields\":{\"description\":\"Hello\"}}" -H "Content-Type:application/json" http://localhost:8080/rest/api/2/issue/ST-1

Yes - that works! Thank you. It still seems that the update should work but it's good to know there is a way.

Hi,

Is the Description field on an Edit screen for the issue you're trying to update? As far as I'm aware fields have to be on Edit screens in order to be updated via the APIs. I got caught out with something similar where I didn't want a field on an Edit screen (just Create and View), but updates kept failing via the API until I added the field to the Edit screen as well.

Andrew.

Yes, check you can do it in the UI before trying from the command line

The Description field is on the Edit screen, I can edit it in the UI and I've tried both Description and description. Still no luck.

Description to description?

Suggest an answer

Log in or Sign up to answer
This widget could not be displayed.
This widget could not be displayed.
Community showcase
Posted 3 hours ago in United States

Atlassian Government Symposium

Good day members, Not sure if you are aware that Atlassian will be hosting a Government Symposium on May 1st, 2019 in Washington DC. For more details please click here If you have any questions...

12 views 0 0
View post

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