Forums

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

We want to implement a rule using automation for Jira, to identify a duplicate custom filed value

prasad biddika
Contributor
June 19, 2024

 

We want to implement a rule using automation for Jira, to identify a duplicate custom filed value.

 

The custom field name is "JIL" which is a number field, if a customer submits with duplicate custom field value the issue automictically set to CLOSED status.

Please help to implement the automation rule.

 

Thanks

 

1 answer

1 accepted

1 vote
Answer accepted
Ste Wright
Community Champion
June 20, 2024

Hi @prasad biddika 

This should work:

  • Trigger: Issue created
  • Action: Lookup issues
    • JQL - JIL = {{triggerissue.JIL}}
  • Condition: {{smart values}} condition
    • First value = {{lookupIssues.size|0}}
    • Condition = greater than
    • Second value = 1
  • Action: Transition Issue
    • Destination status = Closed

---

The rule:

  • Activates on issue creation
  • Retrieves a list of issues which have the JIL set to the number provided in the existing ticket
  • Checks the size of the issue list is not more than 1
  • If it is, transitions the issue to "Closed"

Ste

prasad biddika
Contributor
June 20, 2024

Thanks Ste it worked for me

Like • Ste Wright likes this

Suggest an answer

Log in or Sign up to answer