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,463,394
Community Members
 
Community Events
176
Community Groups

How to clear FixVersion field through scriptrunner listener ?

Edited

I need to clear the FixVersion field in certain conditions.

 

Am using custom script listener through scriptrunner

 

However am unable to clear it. I have tried out below two options.

  • issue.fixVersions.clear();
  • issue.fixVersions.removeAll();

Neither of the above options worked.

No exceptions or failures either.

2 answers

0 votes
Mohamed Adel Community Leader Oct 10, 2021

Hi @Gandhari Soumya 

 

Might be it is old but for recording , you will need to have an empty version object

def version = ComponentAccessor.getVersionManager().getVersionsByName('')
issue.setFixVersions(version)
ComponentAccessor.issueManager.updateIssue(applicationUser, issue, EventDispatchOption.ISSUE_UPDATED, false)

 

Regards,

Mohamed Adel

There are a lot of ways to fix the error,  but if you discuss with snapchat australiayou will get the easiest way to get it fixed. 

@Andrew Merry  As informed there are no errors.

And I didn't understand what Snapchat has got to do with my Jira.

Suggest an answer

Log in or Sign up to answer
TAGS

Atlassian Community Events