Looking for two fields that are the same

Melanie.Johnson
Contributor
February 22, 2024

We are trying to create an automation where the system would look for a field that duplicates. To help a little we created a custom field JIRA field for Dev Ops,. We are trying to automate and would be looking for that field to match from other tickets, from there we would finish our automation. Our problem is that we are having an issue with figuring out this automation. Anyone dealt with this before?

1 answer

0 votes
Mikael Sandberg
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
February 22, 2024

Hi @Melanie.Johnson

Welcome to Atlassian Community!

So if I understand this correctly you want to find existing requests that have the same value as a new one in a specific field? If so then you can do something similar to this automation:

Screenshot 2024-02-22 at 2.33.11 PM.png

In this example the automation is looking for duplicate requests that have the same Prisma Id in the description, and then link the requests as duplicate and closes the new one (not included in the screenshot). 

If your custom field is a text field then you can use "\"something\"" to do a distinct search in that word/phrase.

Melanie.Johnson
Contributor
February 23, 2024

Thank you we will try this.  Appreciate the input we are new to this :)

Like Mikael Sandberg likes this
Melanie.Johnson
Contributor
February 28, 2024

We were successful with linking the issues to our custom key, closing the original issue but are having issues with the child transitioning to approved.  This is the message we received.  Have you seen this issue and if so do you know where we go and look to fix this? Capture.JPG

Mikael Sandberg
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
February 28, 2024

Are you running the rule as Automation for Jira or another user? Check that you can transition from the current status to Approved.

Melanie.Johnson
Contributor
February 28, 2024

We are running the rule with automation for Jira.  We are able to close the original issue which is part of the merge through automation.  We also have added Automation for Jira as an approver on the issue which we need to be approved.   

 

When I go into the ticket it tells me that i do not have permission to transition this issue.  This issue is coming from our Dev Ops and not from the original JIRA system.

Mikael Sandberg
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
February 28, 2024

Okay, so check if there is a transition in the workflow that will take you to the Approved status from the initial one. If you do not have a global transition to Approved that would explain the error. You would then have to either follow the workflow or add a global transition. The global transition can be hidden by adding a condition on it so it is only available for automation.

Melanie.Johnson
Contributor
February 29, 2024

Thank you!  We got that to work we needed to not use transition but tell the system to approve or decline.  One last issue we encountered.  The two issues are linked and currently one is closed (the original issue) and the second linked issue is the one that we want approved.  With the automation to close the original issue we discovered that right after the second issue was linked and approved it closed.  How do we tell the system that we want the child or parent only to close?  You have been a huge help to us and I want to thank you!

 

Mikael Sandberg
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
February 29, 2024

I would start by looking at the workflow and the status that has the approval process on it. Is the approved transition going directly to the closed status? Without knowing what the workflow looks like it is just an educated guess. 

Like Melanie.Johnson likes this
Melanie.Johnson
Contributor
February 29, 2024

Yes the workflow is set that it can go from approved to closed.  Is there a way that we can add in the automation that we want the parent to go to closed and the child remain approved?  I tried searching in the community and do not see anyone that has asked this.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
TAGS
AUG Leaders

Atlassian Community Events