Dear,
I want to automatically clone an issue depending on the input of a custom field named "product". When an issue is created the creator can select multiple products which are then added to the custom field "product".
When an transition is made JIRA should automatically make the same amount of clones as there are products defined in the custom field "product".
Do i need to write a script and if so where can i find the language of the code to do so?
Many thanks.
Welcome to the Community!
You can use Create on Transition for Jira cloud/ DC/ Server app to bulk create issues on any transition in the workflow through custom fields using the "Create multiple issues" and substitution variables feature. You wouldn't need any code/ script to do this. A quick how-to tutorial/ guide to do this: link
Please let me know if you have any questions!
Full disclosure, I'm the product manager for the app.
Thanks,
Nishanth T
Hi Nishanth T, thank you for the welcoming.
After installing the free trial of the "Create on Transition for JIRA app" i have made a new post function, see picture below, without success. What am i doing wrong.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks for trialling Create on Transition for Jira. Few points:
Here is the below-working post function for this automation:
Please let me know if you still have issues or our support can help you super quick.
Thanks,
Nishanth T
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Nishanth T,
Please see my second attempt in the picture below.
The multiple issues are limited to only one issue.
The description is not copied from the parent to the clone
Each new issue should hold one and only one custom field from the list of custom fields defined in the parent issue. How can this be automated?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
I double checked the syntax and found the error: <10400> in stead of 10400 in the "Create multiple issues".
The transition now makes new issues as many as there are products.
The description is still not this of the parent.
The status of the issue is set back to the start status of each new issue. How can i set the status to a know value of another definied workflow?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Jurgen Tyvaert ,
Good day, I am Sreeja Manchala from the Bobswift support team. We have created a support request https://bobswift.atlassian.net/servicedesk/customer/portal/1/SUPPORT-7769 to better track your request. However, we couldn't add you as a reporter. Please sign up using this link https://bobswift.atlassian.net/servicedesk/customer/portal/1/user/signup and share the user name/id. We'll then add you as the reporter and confirm.
In order to have the custom field value for each newly created issue, please add the custom field value as %entry%.
Attached screenshot for your reference.
By using the value as %entry%, the newly created issues will have a single custom field value from the parent issue.
And with respect to the description, %parent_description% should copy the parent issue description to the newly created issues.
Regards,
Sreeja
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Sreeja,
Thanks for the advice. I have signed in with Jurgen Tyvaert.
I have tried your proposal and indeed the custom field is now entered in the new issues. However the description is not copied from the parent issue.
Can you also indicate how i can copy the status from the parent issue. I have tried to fill in "Copy parent issue custom fields" as well as in "Copy original issue custom fields" with "status" but the status doesn't become the same as the parent.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Jurgen Tyvaert ,
Hope you are doing great!
As informed earlier, we have created a support request for your reported issue and made you the reporter.
Please let us know if you are able to access this ticket https://bobswift.atlassian.net/servicedesk/customer/portal/1/SUPPORT-7769 and provide us the requested information in the support ticket.
Looking forward to your reply!
Regards,
Sreeja
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Jurgen - Welcome to the Atlassian Community!
How many different options are available for the Product field?
I would create an automation rule with a series of IF conditions based on the product field.
The condition would be something like Product = X then clone the card.
If Product = Y, then clone the card,
If Product Z, then clone the card, etc.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi John, thank you.
The list of products is long and changes in time so the query or automation rule should cope with this.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.