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

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.

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
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Thursday in Jira

5 ways you can make the most of Jira Software and Bitbucket Cloud

As part of the Bitbucket product team I'm always interested in better understanding what kind of impact the use of our tools have on the way you work. In a recent study we conducted of software devel...

90 views 0 5
Read article

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you