How to get hidden custom fields using Rest API

We have created a global field for all issue type and associated different default values for different projects and we intentionally did not added this field to any screen, so it can not be edited by any user but we can still differentiate entities/workitems based on value of this field.

Now since the field is not associated with any screen so it is not returned from API when we use blow queries
- /rest/api/2/issue/createmeta
- /rest/api/2/issue/editmeta

we observed there is another query which returns all fields and also includes the global hidden field and that is
- /rest/api/2/field

now here the problem is the response of above /field query does not include information like which field belongs to which project/screen/schema etc., so please let us know if there is a way to get such information from /field URL by passing some request parameter/flag in request.

also please let us know if there is some other way to get project level hidden fields using some other rest request.

2 answers

1 vote

The answer is in the question really.

  • We have created a global field ... we intentionally did not added this field to any screen
  • Now since the field is not associated with any screen so it is not returned from API
  • ... the problem is the response of above /field query does not include information like which field belongs to which project/screen/schema

Correct.  It will not include information about the screen the field is on because it's not on any.

Hi, did you find an answer to this?

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Posted Wednesday in Jira

Join our webinar: How 1B+ feature flag events helped us build the new Jira

Every time you release software, there's a bit of risk – that there's a bug, that something breaks, or that the feature doesn't resonate with customers. Feature flagging helps make high stakes s...

133 views 0 3
Join discussion

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