count fixversion changes

Hi I would like to search for issues that had their fixVersion field changed although I want to exclude any issues that had initially an empty fixVersion field.

 

For example:

In my project I have two versions/release

Version_1_00

Version_1_01

If I create a issue and assign fixVersion = Version_1_00 and then over the course I change it to Version_1_01.

I want this issue to be listed.

However this issue should not be displayed if fixVersion stayed at the initial Version_1_00 and issue was closed (Resolved).

 

 

 

1 answer

1 accepted

This widget could not be displayed.

Hi AMOL,

If I understood your question correctly, you want display issues with following criteria:

- Display issues that currently have Version_1_01 and were having Version_1_00 since creation (weren't empty after creation) and don't display issues that stayed at Version_1_00 and are closed.

If this is correct, the following JQL should satisfy your requirements:

fixVersion=Version_1_01 and  fixVersion was Version_1_00 and fixVersion was not EMPTY 

Please let us know if this is okay for you.

Cheers,
Marko 

Thank you, Mark. Yes, that is one way for sure.

I also ended up creating a scripted (Adaptivist) field that counts the number of FixVersion.

import com.atlassian.jira.component.ComponentAccessor

ComponentAccessor.changeHistoryManager?.getChangeItemsForField(issue, "Fix Version").size() as Double

Meant to say number of FixVersion changes..

Suggest an answer

Log in or Sign up to answer
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Posted Wednesday in New to Jira

Are you planning to trial, or are currently trialling Jira Software? - We want to talk to you!

Hello! I'm Rayen, a product manager at Atlassian. My team and I are working hard to improve the trial experience for Jira Software Cloud. We are interested in   talking to 20 people planning t...

143 views 2 0
Join discussion

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