Documentation showing JSON types vs. Custom Field types?

e.g. which become arrays? I know multiuserpicker comes through as an array, and Text doesn't. What about grouppicker? Each one I must learn by waiting for data to come through the REST GET. Is there a better way?

1 answer

0 votes

Not if you want to interpret it in your program.

If you look at the UI though, you'll be able to work it out, and it's very rare that Atlassian change the "type" of field (I think the last one was the conversion to allow many components to be selected instead of one, and that was in JIRA 2 or 3.0)

Broadly though, you'll find date/time fields come out as date/time, free format text will be a single block of text, data that contains one item will be a single output, and multi-item ones will be arrays of single outputs.  If it's a "select" type field (and that includes radio buttons and single users), it's a single, and if it's multi-select (multi-check box, multi-user picker, multi-group picker, components, versions, etc, there's a bit of a clue in the name of most), you'll get an array

Suggest an answer

Log in or Join to answer
Community showcase
Sarah Schuster
Posted Jan 29, 2018 in Jira

What are common themes you've seen across successful & failed Jira Software implementations?

Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...

2,965 views 12 18
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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot