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

unable to raise a ticket via Rest API by custom field in JIRA Edited

Hello:

I'm trying to raise a ticket in JIRA by REST API (using custom filed) but seeing below error

"Field 'customfield_1234' cannot be set. It is not on the appropriate screen

Command using for same is: 

curl -D- -u  sahotay:sahotay -X POST --data @data -H "Content-Type: application/json"  http://trilogy-02.ds.mot.com:8080/rest/api/2/issue

my data file have below contents 

{
"fields": {
"project":
{
"key": "TST"
},
"summary": "Always do right. This will gratify some people and astonish the REST.",
"description": "Creating an issue while setting custom field values",
"issuetype": {
"name": "Bug"
},
"customfield_1234": "Is anything better than text?"
}

 

Attached is the image will give information about screensJIRA_API.jpg

 

 

 

2 answers

1 accepted

1 vote
Answer accepted

Is customfield_1234 really the custom field numbered 1234?

Go to Admin -> Issues -> Fields, look for the one named customfield_1234 and hover the cursor over one of the edit options.  Does the url that appears on hovering say id=1234 in it?

 

Thanks much Nick, you really made my day 

Thanks much Nick, you really made my day 

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