Forums

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

Report

Ayush Lawania
Contributor
May 2, 2023

Need to create a report where I can see the issue count for status flipped in from one status to another.please help

1 answer

0 votes
Prakhar Srivastav {Appfire}
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 Champions.
June 14, 2018

@Hemant Sirdeshpande

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)

Suggest an answer

Log in or Sign up to answer