How to get Archiveversion from jira api java classes?

Suresh April 11, 2012

Hi all,

If the issue regarding archive.Then should not allow transistion.

validator plugin?

how to get the issue archived or not from issue?

Thanyou!!

Suresh

1 answer

0 votes
JamieA
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 11, 2012

From the issue... eg if you were using a groovy validator the condition would be:

issue.fixVersions*.archived.contains(true)

For java just iterate the getFixVersions() and call .isArchived().

Suresh April 12, 2012

suppose issue contians fixversion version v01.

If i did archived on version v01.Now the list is

empty even through the issue contains FixVarsion as value v01.

Collection<Version> cOlversions = issue.getFixVersions();
for (int i = 0; i < cOlversions.size(); i++) {
Version version = (Version) fixVersionIterator.next();
			bArchive = version.isArchived();
}

What i do: If the issue contains archived version i don't allow to transistion.

In the code i am getting only released and Un released versions.I am not getting Archive versions of issue details.

Suresh April 15, 2012

Yes Jamie it filtering archived once.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events