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

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,559,293
Community Members
 
Community Events
184
Community Groups

Initializer executed multiple times when updating issue

Antoine Berry
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Dec 11, 2017

Hi,

When I edit and update an issue, the initializer is ran multiple times. It is not convenient as I conditionnally display a warning message. The initializer is us usually around 5 times (sometimes less, sometimes more, seems random). As as result, the message appears multiple times and covers a large part of the screen.

This is my code :

int cfId = 12345
def customFieldManager = ComponentAccessor.getCustomFieldManager()
CustomField cfObject = customFieldManager.getCustomFieldObject(cfId)
def cfValue = underlyingIssue.getCustomFieldValue(cfObject)

if (cfValue = "Custom Value triggering message"){
UserMessageUtil.warning("This incident has been created by a VIP")
}

Is there a way to execute the initializer only once ?

Thanks.

1 answer

0 votes
Daniel Yelamos [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.
Dec 14, 2017

Hi Antoine.

You are experiencing a form of the bug:

https://productsupport.adaptavist.com/browse/SRJIRA-2027

We're sorry for your troubles, if you watch this ticket you'll be able to know when it gets fixed.

Cheers!

Dyelamos

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events