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 can I Bulk Update JIRA issues and ADD a 'Fix Version'?

Hi

I need to run a Version Workload Report in JIRA against ALL issues in our system that are currently unresolved.

I would like to run a Bulk Update and ADD a 'Fix Version' value to all selected items. That would provide me with a way to run a Version Workload Report.

Presently, some of those issues already have a 'Fix Version' assigned to them - and we do not want to lose that information. A quick test shows me that if I run the 'Bulk Update' and fill in a 'Fix Version' it will OVERWRITE the existing values. That's NOT what I want. I need to some way to Bulk Update and ADD a 'Fix Version'.

Alternatively, I need some way to produce a very similar report to the Version Workload Report, without supplying a 'Fix Version'. Does anyone know of such a report?

Thanks!

2 answers

1 accepted

1 vote
Answer accepted

I think the only way for you to accomplish this is by excluding the issues you do not want to perform changes to in your search query. You could consider adding something like "AND fixversion not in (insert fix versions here which you do not want to change, comma separated)".

Alternatively, if the issues you want to change all have an empty value for fixed version you could also try to add "AND fixversion = NULL"

Actually, I came to the same conclusion myself :)

Basically, I'm going to:

  1. Manually edit the issues with an existing 'Fix Version' and ADD the new version.
  2. Do a Bulk Update against those issues that do not have a 'Fix Version'' and assign them a new version.
  3. Run the Version Workload Report against the new version.

Not ideal, because it involves a fair bit of manual work - but do-able.

That said, JIRA should really offer both of the following:

i) Ability to Bulk Update and ADD values to a multi-value field.

ii) Ability to run a Version Workload Report against more flexible criteria. For example, instead of specifiying a Fix Version, you should be able to specify a Filter. This would be VERY useful.

Many thanks for your reply.

Like Preeti Sharma likes this

I agree, this would be very helpful for our process.

Jira should not override the fix version (there should at least be an option to overwrite it or add additional). When you're dealing with loads of issues and need to update them, there is no way doing this manually. However in this case, the bulk operation is also completely useless.

We just learned a lesson in a hard way and hopefully we can fix this in the next couple of hours.

An approach we take is by using the script runner, a custom field and a transition. The recipe is as follows:

* Add a new 'version picker' custom field and call it 'add version'
* Add a circular global transition and call it 'add version', the transition has one transition screen containing the 'add version' custom field.
* In the global transition add a script which adds all versions from the 'add version' custom field to the fix version field.

Now you can actually run a bulk transition, select the add version transition, specify which version you want to add and let it run.

Script which does all the work (including removing fix versions) can be found here
https://gist.github.com/francismartens318/6863710

(Note that the script itself is running against an older JIRA, so it needs to be updated).

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted in Jira

Calling all Jira Cloud users! Give us feedback on our exploration of a new navigation.

Hi everyone! My name’s Matt and I’m a product manager at Atlassian. I work in the navigation & findability space for all our Jira Cloud products. We’ve been working on trying to improve the exp...

913 views 14 12
Join discussion

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