Forums

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

Field Type of Issues

MohammedKamil September 24, 2014

I retrieved all the fields from JIRA through the REST API http://example.com:8080/jira/rest/api/2/field ....            

But when i looked at its data type , i am a bit confused ..... The default field "Priority" is of data type List , ie a select list with multiple options , but hen i looked at the JSON for the REST API , it showing that the type is "Priority" ...... Not only this when i create a custom attribute say "Severity"  with select list as its data type , i am getting "String"  as its data type when i retrieve ..... Any idea on how to retrieve the exact data type ??

1 answer

1 accepted

1 vote
Answer accepted
Nic Brough -Adaptavist-
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.
September 24, 2014

The type in the metadata depends on how the field announces itself in the code, and there's no real way to know what type a field really is - if custom field selects say they're a string, that's it, you won't know any more about them

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events