The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

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

Scriptrunner behaviour for duplicate custom field

Mohamed Mehdi Mrad
August 26, 2021

Hi,

Im looking for a Scriptrunner behaviour to find out if a custom field already exists, If it exists when the issue is created it shouldnt be added to avoid duplicate issues.

Thank you.

2 answers

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

0 votes
Tom Lister
Community Champion
August 26, 2021

Hi @Mohamed Mehdi Mrad 

I think that a string search of all issue summaries when an issue is created will not perform well.

How big a problem is this? Is it service desk?

Mohamed Mehdi Mrad
September 3, 2021

Hi,

I need to check only per project if an issue with the same summary already exists. Im still looking for a method to find out

0 votes
DPKJ
Community Champion
August 26, 2021

Welcome to the community.

Can you elaborate here, because,

  • Fields on issue never duplicated.
  • That means that each issue with have only field with one name.
  • So I think you don't need do anything special here.
Mohamed Mehdi Mrad
August 26, 2021

Hello,

thank you for your answer,

I mean on different issues. For example, I want to check if the same summary exists on  another issue, if it is so the new one doesn't get created.