Need to create a report where I can see the issue count for status flipped in from one status to another.please help
version will be a collection of version so ,first you need to get the Version Obj by iterating the collection and then use getReleaseDate on it . Assuming you want the first fix version :
import com.atlassian.jira.component.ComponentAccessor
import com.atlassian.jira.issue.Issue
import com.atlassian.jira.ComponentManager
def customFieldManager = ComponentAccessor.getCustomFieldManager()
def cDuedate = customFieldManager.getCustomFieldObjectByName("Customer Due Date")
def cDuedateValue = issue.getCustomFieldValue(cDuedate)
def version = issue.getFixVersions()
def setDate = version.iterator().next().getReleaseDate() as Date
log.warn "Release Date = ${setDate}"
issue.setCustomFieldValue (cDuedate,setDate)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.