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,

Sumit

1 answer

1 accepted

2 votes

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.

Thanks,

Sumit

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
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published May 30, 2018 in Marketplace Apps

Three tips for boosting your board's efficiency with Story Maps

Trello is one of the most effective tools for driving your sprints. It's customizable for every Agile team and product owners and Scrum masters (SM) love it. However, Agile teams often struggle with:...

839 views 2 9
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