Forums

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

Automation throws error: Found multiple fields with the same name and type: . Epic Link

Kees Vianen
Contributor
February 7, 2023

I have created an automation rule to create a new issue. 

I have included the Epic link field.

When the rule is executed I get this error:

image.png

and the epic is not linked to the newly created issue.

What am I doing wrong here?

1 answer

1 vote
John Funk
Community Champion
February 7, 2023

Hi Kees,

This happens when someone creates another Custom Field with the same name. This could have been done on a Team-managed project. Is your rule a Global rule? Or a Single or Multiple Project rule? 

Kees Vianen
Contributor
February 7, 2023

It is a single project rule for a JIRA Service Management project.

The issue that is created is created in another project which is a JIRA Software project.

The usecase is to create a bug in the developers project from a reported incident.

John Funk
Community Champion
February 7, 2023

Can you share the entire rule? 

Kees Vianen
Contributor
February 7, 2023

Here it is:

image.png

 

image.png

image.png

image.png

Nic Brough -Adaptavist-
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 7, 2023

The Automation rule looks fine, you will need to get your admins to get rid of the duplicated field - just rename it, no need to delete it.

Kees Vianen
Contributor
February 8, 2023

I see only one:

image.png

Kees Vianen
Contributor
February 8, 2023

Logged in as admin and checked the custom fields. Now I see 2 but both are locked.

image.png

How can I rename a locked field?

John Funk
Community Champion
February 8, 2023

Yikes - never seen that before. That's probably going to take a support ticket with Atlassian. 

In the meantime, you might try updating the field using the Advanced feature. 

In the rule, click the More options with the down caret beside it. 

Replace everything in there with:

{
"fields": {
"{{issue.customfield_10009": "GPS-11360"}
}

 

Where 10009 is the Epic Link ID for the Epic you are using. To see that click on the 3 dots menu to the right and select View field information. The ID will be in the URL. I would try the one that has the most screens and projects already used by it. 

And then take out the field update that you have now for it. 

But you should still open the support ticket. 

Finally, some of your field updates look like they are just copying over themselves. Copying a value from a field to the same field in the same issue doesn't see to be doing any good to me. Did you meant to copy from the Trigger issue? If so, click the words Current Issue and then change to Trigger Issue. 

Nic Brough -Adaptavist-
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 8, 2023

I have seen this happen, when someone removed Jira Software from their Jira, then re-added it a few months later.  There was a time where there was a bug in Jira Software that when it was added to Jira, it automatically added the Epic fields, but didn't check to see if they already existed properly, so it would duplicate the field (there was a spelling mistake in the code that looked for the Epic Link field, and one of the others if memory serves)

I don't think that's what's gone wrong here though - I'm talking about a version of Jira Cloud from quite a while ago.

@[deleted] is absolutely right on this one, you really need to get this raised with Atlassian as soon as you can.

Like John Funk likes this
John Funk
Community Champion
February 8, 2023

Thanks for the explanation @Nic Brough -Adaptavist-  - I can see how that might happen. Though I had no idea before that scenario!

Nic Brough -Adaptavist-
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 8, 2023

I've only seen it twice (five times if you count the people who messed with the database and got it horribly wrong), so it's pretty obscure!

Like John Funk likes this
John Funk
Community Champion
February 9, 2023

@Kees Vianen  - How are you getting along with this? 

Kees Vianen
Contributor
February 10, 2023

I have succesfully implemented the workaround. After some trial and error I found that it had to be like this:

{
"fields": {
"customfield_11100": "GPS-11360"
}
}

 

Now I will raise an issue with Atlassian support.

I learned that we had a cloud environment and at some point imported from on-prem to that existing cloud environment. That may have caused it.

Like # people like this
John Funk
Community Champion
February 11, 2023

Glad you got it working. And thanks for letting us know the reason. Hopefully, they have cleaned one of them out for you. 

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events