Issue with fixversion

We have a shop that builds three releases a week.  Instead of creating seperate tickets we use one ticket and merge code over three branches.  to track to make sure we have not missed a build, I have a query that compares the target release, a custom field, with the fixedin field.  Currently we have two target releases 3.2 and 3.3.    Needless to say since we are building weekly we bump up the maintenance field value each time.  (i.e. 3.3.0, 3.3.1, 3.3..2, etc.)

I noticied a pecular case when I was looking for the following

"Target Release" = 3.2 AND fixversion not in versionMatch("3.2.*")

that I had a JIRA ticket that has a target release of 3.2 but had a fixedin version of 3.3.2 .  This ticket did not get selected because it pattern match to the 3.2 in 3.3.2.

Any suggestions to overcome this?

1 answer

Does versionmatch respect typical regex rules? I think ^ is used to indicate the beginning of the string in typical regex, so your regex would be "^3.2*"

I don't have ScriptRunner on my install so I can't test it out; sorry.

Also, I think your real issue is with the versionMatch function, not the fixVersion field. You might have luck checking with the folks who control versionMatch?

https://marketplace.atlassian.com/plugins/com.onresolve.jira.groovy.groovyrunner/cloud/overview

Thanks for the quick response.  I tried your suggestion and it worked perfectly.

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Julia Dillon
Posted Apr 17, 2018 in Jira

Tell us how your team runs on Jira!

Hey Atlassian Community! Today we are launching a bunch of customer stories about the amazing work teams, like Dropbox and Twilio, are doing with Jira. You can check out the stories here. The thi...

807 views 2 19
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