You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
Next: Root
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
The Atlassian Community can help you and your team get more value out of Atlassian products and practices.
Hi, I am trying to create a ticket and include the epic_link (customefield_1003) but I am getting error "cf_10003 cannot be set. it is not on the appropiate screen"
Any suggestions as to how can I achieve this or what I am doing wrong.
I am using Jira v8.5.17
Thank you
curl -X POST --url https://jira.lab.com/rest/api/2/issue -s -u myaccount:mypass -H 'Content-Type: application/json' --data '
{
"fields": {
"project":
{
"key":"MYPROJECT"
},
"summary":"test epic Link info two",
"description": "With this test we are including epic link info in api call",
"issuetype":{
"name":"Ticket"
},
"customfield_10003": "MYPROJECT-766"
}
} '
{"errorMessages":[],"errors":{"customfield_10003":"Field 'customfield_10003' cannot be set. It is not on the appropriate screen, or unknown."}}
Your REST call looks correct to me, so I'd want to do some debugging on the message it's coming back with. Two tests:
1. Can you create the issue over REST without the Epic link field? (i.e. same code, but don't put in the line that sets cf_10003)
2. Can you manually create the issue, as the user making the REST call, in the UI, filling in the Epic link with myproject-766?
@Nic Brough -Adaptavist- sorry for the late reply. for question 1, yes I can create a ticket excluding the epic link parameter.
for question #2, I am not familiar with making the REST call in the UI. can you give me an example on how will this be done.
thanks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Juan Leon
Welcome to community!
Can you confirm that the field customfield_10003 is available in create screen of the project and issue type?
Are you able to do the same operation from the UI successfully?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Update: It turned out that I used the wrong customfield number. it was cf_10001 instead of cf_10003. thanks for your help.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
How do you know that cf_id number is 10001
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Because you look at the custom field ID?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.