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

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

How to make the scripted field (release date for the fix versions) visible in the issue page ? Edited

I am fairly new to Scriptrunner and is someone who is not from a development background. Anyway, I had been looking for ways to make the release date visible along with the fix versions. So, created a scripted field (Date picker) and added the script for the same and it works fine. My question now is, what is the next step for making this field visible in the issue page along with the Fix version. How should we do that. Dos simply adding the field to the screens work ? I am actually clueless. Kindly help. Thanks

3 answers

2 accepted

0 votes
Answer accepted
Ivan Tovbin Community Leader Feb 27, 2018

Hi Aisha,

Now that you have created your field you have to add it at least to your issue 'Veiw' screen.

1) Go to your Project Settings -> Screens and check which screen is associated with the 'View' operation

2) Go to Administration -> Issues -> Custom Fields, find your field in the list of fields and click on the 'gear' icon to the right of it to open a context menu. Click on 'Screens' in that menu to bring up a list of screens to add this field to. Check the screens you need and click 'Update' at the bottom.

You can find more details about screens in this documentation.

Thank you ! Will do the same :) Appreciate your help :)

0 votes
Answer accepted

Add it to the view screen, like any other custom field.  It will only appear in view. as a scripted field.

Thank you for the quick help ! :):)

Hi Aisha,

Could you please share the script here ? 
i want to use Version Release date on issue.



Hi @sandeepsai

Template - Date Time picker

Inline script - 

import com.atlassian.jira.issue.IssueManager
import com.atlassian.jira.component.ComponentAccessor
import com.atlassian.jira.bc.issue.IssueService
import java.lang.Exception
import com.atlassian.jira.issue.Issue
import com.atlassian.jira.issue.MutableIssue
import com.atlassian.jira.project.version.Version
import java.text.SimpleDateFormat
import java.sql.Timestamp
import java.text.DateFormat
import java.util.Date

Collection versions = issue.getFixVersions()

if (versions==null || versions.size()!=1)
return null
def version = versions.iterator().next()
new Date(version.releaseDate.time)

$dateFormatterWithoutTime.format($value) this is showing in result  no success

Sandeep, check what Search Template you've used for the custom field. Should be Date Time Range Picker. Configuration is made from Jira Administration -> Issues -> Custom Fields -> search for your field -> Edit.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Marketplace Apps & Integrations

5 mobile apps for Jira Cloud to boost productivity

  It’s very important to have access to the workflow process from anywhere. Especially if you manage the work of others. There is no difference whether you’re out of office, or drive a ca...

241 views 2 5
Read article

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