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
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
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
Thanks so much for the help!
- Christa
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Please raise a support request with us at https://innovalog.atlassian.net/servicedesk/customer/portal/8 to follow up on this further.
Regards,
Radhika
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.