I have two projects, and I wanted to create a trigger where when I can create an issue in the one, it clones the issue into a specific epic in the other project. I keep getting errors, not sure if they're related to Permissions or something. I'm not an admin for the Project I want to clone into but I do have access to create new tickets.
Hi @Fraser Walker -- Welcome to the Atlassian Community!
There are several things which could lead to this symptom...
Kind regards,
Bill
Hi @Bill Sheboy , thanks for the welcome and thanks for the detailed reply. Bear with me while I try to answer your questions in detail (I'm a little new).
1) Permissions
Permissions in Destination Proj for Create Issue and Clone Issue are Project Role/Application Access (any logged in user). Don't see a Permissions tab in Source Proj > Project Settings.
2) Issue Type
Issue type is just a Task and Tasks are available in Destination project. I just made a test one myself manually.
3) Project Type
Think this is a promising lead. Source is Team Managed, Destination is Company managed. In Destination project settings, Tasks follow "Default Field Config" whereas in Hedgehog I'm sure I've customized task fields before. See picture for Task fields in Source Project.
I can see all the projects that share Default Field Config for Tasks in the company and they're all company managed projects. If it matters, the Source/Destination projects also have different Columns. Destination is a standard "Backlog/Selected For Development/In Progress/Done"; In Source proj I've customized my Columns.
4) Is issue an Epic.
I'm only looking to clone Tasks. I would like the Task in Source to be under a different Epic than the cloned Task in Destination. The Epic I want cloned task to be under already exists in Destination Proj.
5) Re Fetch
Thanks for this tip. I've included in my trigger but still getting same errors. I'll keep this in mind for future automation though.
Let me know if I need to clarify anything else,
Fraser
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yes, this appears to be the "clone team-managed issue to <anywhere else>" defect, occurring due to the differences in issue types, fields, status values... as shown here: https://jira.atlassian.com/browse/JSWCLOUD-22449
The suggested work-around is to explicitly select the issue type in the clone operation.
Another work-around would be to create the issue instead of clone, and explicitly set each field you need to copy over. And, I would explicitly set the status or leave it blank. Another challenge could be if you want to copy components, as they are distinct for each project.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Explicitly selecting the issue type (Task) fixed the problem. I've even managed to set the Epic Link I want to clone into and the cloning is working exactly as expected. Thank you for your help @Bill Sheboy
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Awesome! I am glad to hear that work-around helped.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I had the same problem. Explicitly setting issue type to 'Task' instead of 'Copy from issue' fixed the problem.
Many thanks @Bill Sheboy
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.