If you need to script some JIRA task, it is very easy to do:
which takes latest unreleased version for the project PRJ.
@GrabResolver(name='
atlassian
', root='https://maven.atlassian.com/content/groups/public/') @Grab( group ='com.atlassian.jira.plugins', module = 'jira-soapclient', version = '4.0' ) import com.atlassian.jira.rpc.soap.client.* def jira = new JiraSoapServiceServiceLocator().getJirasoapserviceV2(new URL('http://host/rpc/soap/jirasoapservice-v2')) String token =
jira
.login('user', 'pass') println
.getVersions(token, "PRJ").sort({ it.sequence }).find({ !it.released }).name
jira
which takes latest unreleased version for the project PRJ.
No comments:
Post a Comment