I am building an automation to clone a ticket to a different project based on a change to a custom field and am receiving the following error:
Clone issue:
I am also seeing an issue and additional automation, and I am now wondering if this is a bug.
The other automation is triggered on a change to a custom field and, if it meets the criteria, is transitioned to a new status. When it runs, I receive the following error:
Hi @Ashleigh Hamilton ,
As @Mike Maurer mentioned, might be worth setting the issue type to Idea - even if this automation is cloning an idea from one JPD project to another JPD project:
If there error persists after that adjustment, let us know.
Hi @Ashleigh Hamilton ,
it looks like the issue type in the destination project doesn't exist or misses some fields that you define e. g. PIR Status.
Could you please check that?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
PIR Status is a field in the destination project. I removed all the custom fields from that step and I still get the same error.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
OK, thanks for checking.
Are both project projects Jira Discovery Projects (JPD)?
If yes, are the custom fields JPD custom fields or global custom fields?
With global custom fields you can use the custom field IDs to control the fields.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Could be an issue with the Actor (Automation for Jira), and this user not having JPD permissions. This has been an issue for some customers in the past, and a known minor bug engineering is aware of.
Try switching the Actor to someone who has JPD permissions, and retesting to see if there are any different results / errors.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
So the fix ended up being a mix of setting the Issue Type to Idea and changing the Actor from Jira Automation to myself.
When I just changed the Issue Type, I received an error saying, "Could not find issue types for project," which made no sense because the destination project is also a JPD project. But when I also changed the Actor, the error was removed.
I then tested just changing the Actor, and the automation failed to create the ticket, confirming that it was a mix of the two actions to resolve the issue.
Interestingly enough, for the second automation that I shared, where my issue was not transitioning to a new status, changing the Actor fixed the issue. So, it definitely seems to be a bug.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yes, and...to the other suggestions provided:
What is the type of your project: company-managed or team-managed? You may find this information in the project list or at the bottom of the left-side page expanding area.
This is important because the issue types and custom fields used by team-managed projects are usually unique to each project. And JPD is built upon a team-managed project approach.
The workaround for these differences is to specifically select the issue type when creating / cloning an issue. And when necessary, use JSON edit to set the custom field values using their IDs rather than field names (or smart values).
Kind regards,
Bill
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
If you're encountering errors while attempting to clone or create issues using Jira automation, our app Deep Clone for Jira, could significantly streamline your process. With Deep Clone, you can reliably clone issues across projects, including all fields, attachments, and issue types, while bypassing common automation hurdles.
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.