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?

Nathaniel Novod May 02, 2013

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
Bhushan Nagaraj May 02, 2013

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

Nathaniel Novod May 02, 2013

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

2 votes
Bhushan Nagaraj May 02, 2013

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

Nathaniel Novod May 02, 2013

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

0 votes
Andrew Frayling May 02, 2013

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.

Matt Doar May 02, 2013

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

Nathaniel Novod May 02, 2013

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.

0 votes
Bhushan Nagaraj May 02, 2013

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 in Statuspage

⭐️Would you recommend Statuspage? Leave a (honest!) review. ⭐️

Hi Community friends, We're working on sourcing more reviews on Capterra – a popular software review site –  to help teams like yours make more informed decisions when choosing an inc...

78 views 3 5
Join discussion

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