Just a heads up: On March 24, 2025, starting at 4:30pm CDT / 19:30 UTC, the site will be undergoing scheduled maintenance for a few hours. During this time, the site might be unavailable for a short while. Thanks for your patience.

×
Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Sending multiple Components into JIRA using Rest API

Arun Unnikrishnan
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.
August 26, 2024

We're using a MS form to collect Ideas, and these ideas or the form responses will be created as an issue in a jira project. 

We're using Power automate to achieve this. We're able to successfully create JIRA issues and populate the Component field in Jira from the form response. However, when the user selects multiple responses in the form, which is mapped to the components in jira, the components are sent as a single object which is comma separated. 

The components are already available in jira.

Few screen shots for your reference

The JSON which is sent to jira with value

Screenshot 2024-08-26 161751.png

This is how it is shown in JIRA

Screenshot 2024-08-26 161929.png

In jira it is treated as a single component. I want this to be three separate components which are already available in JIRA. 

Thanks in advance!

 

3 answers

1 vote
Alex Medved _ConfiForms_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
August 26, 2024

Hi @Arun Unnikrishnan 

Components in Jira REST API are set like this

"components": [
{ "name": "TSM" },
{ "name": "SA" },
{ "name": "SYE" }
],

Hope it helps

Alex

0 votes
John Funk
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
August 26, 2024

Hi Arun,

Try this:

{

      "update": {

               "components":[{"add":{"name":"TSM"}},{"add":{"name":"SA"}},{"add":{"name":"SYE"}}]

       }

}

0 votes
Arun Unnikrishnan
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.
August 26, 2024

@John Funk | @Trudy Claspill Any suggestions? TIA

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events