Forums

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

JIRA Server 7.10.1 with JMWE - Groovy and Special characters in Component field

Christa Meck February 26, 2019

In Project A I have ticket type Fruit.

In Project B I have ticket type Basket.

On Create of ticket type Fruit in Project A I am launching post functions to create a ticket of type Basket in Project B.  All is well and fine... until... I want to add the following Component to my new ticket in Project B:  "Apples, Bananas & Kiwis"

I can not for the life of me get the proper escapes to get the component to work.  Log files show that I can't create the ticket in Project B because there is no Component called "Apples" or "Apples/".

From what I Googled I see that JIRA has historically had challenges with special characters in a number of places, including the component.  Having the team rename their Component is an option but I wanted to exhaust every possibility before I recommended that course of action.

Anyone done this?  Got any code that can help point me in the right direction?  Even if it's from another plugin?  

Thanks!

- Christa

2 answers

1 accepted

0 votes
Answer accepted
Radhika Vijji _Innovalog_
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 27, 2019

Hi Christa,

To set multiple values in the Component/s field, you should provide component names or ids (id takes precedence over the name) separated by a comma. In your case, you need to set the Component/s of the newly created issue in Project B with the Set field value to constant or Groovy template option and value:

Apples, Bananas, Kiwis

And in case the values are "Apples, Bananas & Kiwis", where "Apples" is one component and "Bananas & Kiwis" is another, then set the Component/s field with this value:

Apples, Bananas & Kiwis

Regards,

Radhika

Christa Meck February 27, 2019

Radhika,

Your answer wasn't exactly what I was looking for but you got me on the right track.  The problem is that the component name is "Apples, Bananas & Kiwis" - comma and ampersand included!  Adding by component ID worked.

My component id is: 21199

jira1.pngThanks so much for the help!

- Christa

0 votes
Radhika Vijji _Innovalog_
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 27, 2019

Please raise a support request with us at https://innovalog.atlassian.net/servicedesk/customer/portal/8 to follow up on this further.

Regards,

Radhika

Suggest an answer

Log in or Sign up to answer