Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How do I order versions by release date?

Pete P
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
April 13, 2018

I want to create a filter that lists all of my unreleased versions ordered by release date.  I don't see "release date" field in the column picker.  I do see "due date" but we don't use that column.  What is the correct method / syntax I am looking for something like:

fixVersion in unreleasedVersions() order by release date desc

1 answer

1 accepted

0 votes
Answer accepted
Pedro Felgueiras
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
April 13, 2018

Hy @Pete P

 

I found this article that i think it can help 

 

Best regards, 

Pedro Felgueiras 

Pete P
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
April 13, 2018

Thanks, that is a Due Date sort but I am looking for Release date.  I did find this link in the link you sent:

https://jira.atlassian.com/browse/JRASERVER-22640 - from 2010!

Looks like I can accomplish using scriptrunner.  I will test it out

 

package com.onresolve.jira.groovy.test.scriptfields.scripts

import com.atlassian.jira.component.ComponentAccessor

def versionManager = ComponentAccessor.getVersionManager()
def versions = versionManager.getVersions(issue.projectObject)
def lowestFixVersion = issue.fixVersions.findAll({v -> !v.released}).min({a,b -> a.releaseDate <=> b.releaseDate})
def releaseDate = lowestFixVersion?.releaseDate
return releaseDate

Yogesh Mude
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
April 17, 2020

Hey @Pete P ,

I am also looking for the same.

If you have done this can you post your code here?

Pete P
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
April 17, 2020

@Yogesh Mude , I could not figure it out and gave up on it.  I know the code exists as it is on the Releases page.  But I just wanted to roll up all my projects on a single page. 

I have been using the dashboard calendar widget for this purpose until someone can provide a solution.  

Like # people like this

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events