Forums

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

Showing Release date of Fix version on scripted field

Jamil Rahimov
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.
January 12, 2021

I've tried to add one scripted field which fetches release date from fix version and showing this on issue screen but it didn't work.
Please help me for fixing this problem.
1,Release date of fix version:
Release date.PNG

//--------------------------------------------------------------------------------------------
2.Scripted field configuration:
field configuration.PNG
//--------------------------------------------------------------------------------------------
3. Issue View screen:
Issue screen.PNG

1 answer

0 votes
Juan José Marchal Gómez
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.
January 12, 2021

Hello @Jamil Rahimov

could you check with the following code?

 

if (issue.getFixVersions())
{
if (issue.getFixVersions().last().getReleaseDate())
{
newDate = new Date(issue.getFixVersions().last().releaseDate.getTime())

if (newDate)
{
newDate2 = newDate.toTimestamp()
}
return newDate2
}
}

 

Best regards.

Jamil Rahimov
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.
January 27, 2021
Juan José Marchal Gómez
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.
January 28, 2021

Hello @Jamil Rahimov ,

 

2 tests please.

1) Could you check the code in "scriptfieldconfiguration" using the issue that "fails" and show us the result?

2) Could you check saving as text the template of "scriptfieldconfiguration" and share with us the value of this field. This field will appear in the left side of the issue, in the same place as summary or issue type.

 

Best regards.

Suggest an answer

Log in or Sign up to answer