Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Allowed values for fields which are not on create/edit screen

OpsHub Tech
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
July 31, 2024

While using REST APIs for getting fields meta data, when the fields are present in create/edit screen, we can get allowed values for multiselect/single select type of fields, using create/edit meta APIs

 

But if the field is not present the /fields API does not give allowed values for the mutli/single select fields.

 

Is there any way we can get the allowed values for the fields which are not on create/edit screen.

2 answers

0 votes
Marc - Devoteam
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 31, 2024

Hi @OpsHub Tech 

Welcome to the community.

If this is based on an issue, then this is not possible as then you only have the fields available based on the issue.

You could create custom fields with a default value to store meta data. If tis is multiple data points create a field for each data point.

The context of the fields should be global, then for every created issue the value will be set, even if they are not on any screen.

0 votes
Hans Polder _Devoteam_
Community Champion
July 31, 2024

@OpsHub Tech ,

I am not a API-expert, but the workaround that comes to my mind would be:

1) Create a separate screen that contains all the fields you want to stay hidden in the normal screens. Associate it with another project that is not open to the public but shares the rest of the configuration of your intended project

2) In the API-calls to retrieve the field values, you could use this 'dummy screen' to retrieve all the values, and then set them in the intended screen/ticket.

I don't know if it would work, but that's what I would try!

After figuring it out, you could try to find better/cleaner solutions than above, at least I'd try figuring out if I could get the allowed values this way and move from there.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
SERVER
PRODUCT PLAN
STANDARD
TAGS
AUG Leaders

Atlassian Community Events