Forums

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

How to write a script in Jira for multi select field in Rest API

PADMA KOTHAKOTA
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.
February 11, 2019

How to write a script in Jira for multi select field in Rest API

2 answers

1 vote
Warren
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.
February 11, 2019

Hi @PADMA KOTHAKOTA

I'm not sure what you're asking. Could you expand on what you're trying to do and what your problem is?

You talk of a script in Jira, but mention the API. Do you need the JQL? Give me some more info please

PADMA KOTHAKOTA
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.
February 19, 2019

Hi @Warren ,

 

We are trying to map a confluence form to JIRA using REST endpoint so that it creates a ticket in JIRA everytime a user submits a form. I was trying to write groovy script for mapping a multi-select field. But it is not executing successfully. Can you please advice with a script for mapping multi select fields from confluence form to jira fields?

 

Thanks,

Padma Kothakota.

Warren
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.
February 20, 2019

Hi @PADMA KOTHAKOTA 

What would be useful is if you could supply the JSON that you're trying to use, as well as the error message that is returned.

Could I also confirm that the problem that you're having is when you're trying to submit the REST API call to Jira?

Warren
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.
February 20, 2019

I've created a Select List (multiple choices) customfield in Jira and put some data into that field for a specific ticket. When I GET the data for it, this is the format of that field

 "customfield_14580": [
{
"value": "Option C",
},
{
"value": "Option B",
}

so this is probably the format that you should be using when trying to create a ticket

0 votes
PADMA KOTHAKOTA
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.
February 12, 2019

We are trying to map a confluence form to JIRA using REST endpoint so that it creates a ticket in JIRA everytime a user submits a form. I was trying to write groovy script for mapping a multi-select field. But it is not executing successfully. Can you please advice with a script for mapping multi select fields from confluence form to jira fields?

Suggest an answer

Log in or Sign up to answer
TAGS
atlassian, jira service management, jsm webinar, ai in jsm, opsgenie integration, incident management, virtual agent, atlassian intelligence, ai-powered service desk, it operations, atlassian learning, service management webinar, team '25 recap

What’s new in Jira Service Management 🤔

Discover how Atlassian is revolutionizing service management with cutting-edge solutions for AI-powered support, HR Service Management, or DevOps connectivity.

Register here ⬇️
AUG Leaders

Atlassian Community Events