Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Prevent Workflow transition if field value entered has duplicate

Doods Perea April 14, 2024

When a user transitions to a new status, a screen appears that requires the user to enter a unique value for the "Serial Number" text field.

If the user enters a duplicate serial number, I want to prevent the transition, and show an alert (either in the transition screen or on the main screen) that says "You have entered a duplicate serial number". 

How can I achieve this, either out of the box, or with a Jira app?

Thanks for your help.

2 answers

0 votes
Ste Wright
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
April 15, 2024

Hi @Doods Perea 

It's not available natively; I'm not sure which Apps would be able to do this - but I'd contact the vendors for Apps such as...

  1. ScriptRunner for Jira 
  2. Power Scripts - Jira Workflow Automation 
  3. JSU Automation Suite for Jira Workflows 
  4. Jira Misc Workflow Extensions (JMWE) 
  5. Jira Workflow Toolbox 
  6. ...or another App from the Marketplace

...and see if they can suggest a method of doing this using their App. Their contact details can be found in each listing's Support tab.

---

I can think of a native workaround, but it's not an ideal user experience. You could use Automation to...

  • Check for all issues transitioned to this status (i.e post-transition)
  • Clarify if the Serial Number is in use on another issue
  • If it is, reverse the transition
  • And notify the user (either via email or comment) that the Serial Number is in use and they must choose a unique one

---

Let us know your thoughts!

If you'd like more instructions on how to build the Automation Rule, we'd be happy to help :)

Ste

Vicente Domínguez [Decadis AG]
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.
April 15, 2024

Hello @Doods Perea and thank you @Ste Wright for mentioning us!

I am part of the Decadis team and, although I think that it is not possible to validate with a JWT for Jira Cloud validator if a serial number was already used in a previous issue with our app, it might be possible to update the new issues automatically with a serial number that was not used before.

If you are interested in this approach and need further assistance, please, feel free to create a request in our Support Portal.

Best regards,

Vicente

Like Ste Wright likes this
0 votes
John Funk
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
April 14, 2024

Hi Doods,

You most certainly will not be able to do that out of the box with Jira. And not sure about any apps that might do that. Maybe ScriptRunner Behaviours. 

Suggest an answer

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

Atlassian Community Events