Hi Team,
I have couple of versions in my project.
I need to fetch startdate and release date of versions and do some calculations on it.
image2016-11-25 14:52:57.png
import com.atlassian.jira.ComponentManager;
import com.atlassian.jira.component.ComponentAccessor;
import com.atlassian.jira.project.ProjectManager
import com.atlassian.jira.project.version.VersionManager
def projectKey = issue.getProjectId() //this will give me project_id
i need to fetch versions startdate,versions releasedate by passing project_id.
-----------------
I have done some R&D on how to achieve this,
getAllVersions() //this will give me all the versions present in system
Date getReleaseDate() it will give release date of version
Date getStartDate() it will give start date of version
Reference:https://docs.atlassian.com/jira/server/com/atlassian/jira/project/version/Version.html#getStartDate--
https://docs.atlassian.com/software/jira/docs/api/latest/com/atlassian/jira/project/ProjectManager.html
I am new to groovy,can any one please help me with pseudo code to achieve this.
Thanks in advance,