Links

Jira REST API integration

Integrate app with Jira REST API
Custom fields of type Multilevel Select are the same as native custom fields like Select or Cascading Select. It means you can use Jira REST API to get the values or create a new issue with Multilevel Select.

Get issue

Below you can see part of the response you get when you get an issue via REST API. Read more about the endpoint at https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issues/#api-rest-api-3-issue-issueidorkey-get​
"customfield_10045":{
"ids":[
"35f0ae78-814c-4f06-83b4-6b2d9792e4a3",
"5cfd4afc-a325-4067-988d-030f863c4483",
"fa32794b-164a-41fa-a54f-09f380cc1e4f"
],
"values":"Vegetarian, Italian cuisine, Quatro Fromaggi Pizza",
"value_level1":"Vegetarian",
"value_level2":"Italian cuisine",
"value_level3":"Quatro Fromaggi Pizza"
}

Create issue

Below is an example of create issue payload with three options, selected in Multilevel Select. Read more about the endpoint at https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issues/#api-rest-api-3-issue-post​
{
"update":{},
"fields":{
"summary":"Issue created via REST API",
"project":{
"id":"10005"
},
"issuetype":{
"id":"10007"
},
"reporter":{
"id":"65263gf77rig3d3bd"
},
"customfield_10045":{
"ids":[
"83f0ae78-814c-4f06-83b4-9b2d9792e4a3",
"5cfd4vfc-a325-4067-988d-030f863c4489",
"fa32794b-164a-41fa-a54f-39f380cc1e4f"
],
"values":"Vegetarian, Italian cuisine, Quatro Fromaggi Pizza",
"value_level1":"Vegetarian",
"value_level2":"Italian cuisine",
"value_level3":"Quatro Fromaggi Pizza"
}
}
}

How to get an option ID?

🐾 Steps

  1. 1.
    Go to the Multilevel Select configuration.
  2. 2.
    Find an option for which you need an ID.
  3. 3.
    Click the chevron icon next to this option to expand the block.
  4. 4.
    In the General configuration tab, you can find option ID. Click on the icon to copy it.