Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Deleted user
Level
0 / 0 points
Next:
badges earned

Your Points Tracker
Challenges
Leaderboard
  • Global
  • Feed

Badge for your thoughts?

You're enrolled in our new beta rewards program. Join our group to get the inside scoop and share your feedback.

Join group
Recognition
Give the gift of kudos
You have 0 kudos available to give
Who do you want to recognize?
Why do you want to recognize them?
Kudos
Great job appreciating your peers!
Check back soon to give more kudos.

Past Kudos Given
No kudos given
You haven't given any kudos yet. Share the love above and you'll see it here.

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

Field cannot be set although it IS on the appropriate screen

Hi, 

I am having the problem that I can only set system fields (due date, summary, assignee,...) in Shary. 

I would like to set the field "gremium date", which is on "create issue screen" the screen in Jira. But in Shary I still get the message

com.atlassian.sal.api.net.ResponseException: Error communicating with Jira, {"errorMessages":[],"errors":{"gremium date":"Field 'gremium date' cannot be set. It is not on the appropriate screen, or unknown."}} 

The code in Shary is

{ 
"fields":

{
"project": { "key": "BKB" },

"gremiumdate": "[entry.golivedate.jiraDate]",

"issuetype": { "name": "Task" }
}
}

Can anyone help? Thanks a lot!screen.JPGscreen2.JPG

1 answer

1 accepted

0 votes
Answer accepted

I don't think the field id in your code is correct - "gremium date" is not  system field, it's a custom field, so you should be using the key for that.

Go to your list of custom fields, find gremium date and hover over, or click, one of the edit/configure options.  You should see a url that contains "id=xxxxx", with the xxxxx being a five digit number something like 10047.  Instead of gremiumdate, use customfield_10047 in your code.

Hey Nic, 

thanks a lot for your answer! I tried that and found 

,{"id":"customfield_16747","name":"Gremium Date","custom":true,"orderable":true,"navigable":true,"searchable":true,"clauseNames":["cf[16747]","Gremium Date"],"schema":{"type":"date","custom":"com.atlassian.jira.plugin.system.customfieldtypes:datepicker","customId":16747}}

so the new code is:

{ 
"fields":

{
"project": { "key": "BKB" },

"customfield_16747": "[entry.golivedate.jiraDate]",

"issuetype": { "name": "Task" }
}
}

 

but I still get the same error. Now it is 

com.atlassian.sal.api.net.ResponseException: Error communicating with Jira, {"errorMessages":[],"errors":{"customfield_16747":"Field 'customfield_16747' cannot be set. It is not on the appropriate screen, or unknown."}}

It is not possible that the ID of the customfield in the test environment is different is it? 

Because I usally use this link https://t-jira-consorsbank.is.echonet/rest/api/2/field to access the ID.

 

Thanks again

Ronja

Yes, the id of a field is variable by system.  

Unless the test system is a direct database clone of the production system.

Ah you are right! Now it works, thanks a lot

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