Want my scripted field to come under date time field or any other new location {preferrably under date time field}.

Want to change the location of scripted field where it is appearing currently to move to a new location while viewing the issues(preferrably under date time field ).

I understand that a template is required for viewing a custom field but I do not have much experience on writing the velocity template.

Configured searcher: Date Time Range picker

Template : I tried with all available relevant templates but location of the fields remains the same ... {only value changes}

if someone has experience in moving field location. the Help will be greatly appreciated.

Thanks in advance,


1 answer

1 accepted

2 votes
Accepted answer

You aren't going to be able to do this without coding.

The dates are grouped together based on the field type presented by the plugin providing them. If they're a date or date/time field, they get grouped up. You're using a scripted field which is not a date/time field, so it won't get grouped with them.

I agree to your comment and I thank you for looking into this issue.

It would be a great help if you can tell me what sort of coding changes are required. Whether it will be a Velocity or any other changes ?

Also how much time it should ideally take to perform changes.



Mmm, well, the easiest fix might be to create your own plugin which implements a date/time field, and then replicates the logic in your script. No changes needed to Jira core code, but it does mean a little plugin you'll need to maintain in the long run.

If you want to start digging in the core of Jira, then I'd start with https://developer.atlassian.com/display/JIRADEV/Adding+Custom+Field+to+Issue+Summary - this is not quite what you need, but it's close to the sort of thing you need

You could try relocating it with some javascript too, but I avoid that as it tends to be very fragile and I really don't know javascript well enough to be confident.

Thanks Nic for your valuable comments ..!!

I made a workarround for it..... I created a custom field {date time type} in Jira, Populated it using the scipted field and made scripted field hidden from Users.

Thats how I have the value of the scripted field grouped together with date time type custom field.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Nov 29, 2018 in Marketplace Apps

How to set up an incident workflow from the VP of Engineering at Sentry

Hey Atlassian community, I help lead engineering at Sentry, an open-source error-tracking and monitoring tool that integrates with Jira. We started using Jira Software Cloud internally last year, a...

1,686 views 3 11
Read article

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you