Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

How to clear FixVersion field through scriptrunner listener ?


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('')
ComponentAccessor.issueManager.updateIssue(applicationUser, issue, EventDispatchOption.ISSUE_UPDATED, false)



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
Community showcase
Published in Apps & Integrations

Marketplace Partner Spotlight: Fine Software

Happy New Year, everybody! What better way to kick off 2022 than with a new Marketplace Partner Spotlight ✨ This month, we're getting to know Daniel Franz, co-founder of Fine Software. Fine Software ...

428 views 2 15
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you