Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Showing Release date of Fix version on scripted field

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

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.

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
TAGS

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you