Forums

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

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

Sumit Kumar
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.
November 11, 2013

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
Answer accepted
Nic Brough -Adaptavist-
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.
November 11, 2013

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.

Sumit Kumar
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.
November 11, 2013

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

Nic Brough -Adaptavist-
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.
November 11, 2013

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.

Sumit Kumar
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.
November 12, 2013

Thanks Nic for your valuable comments ..!!

Sumit Kumar
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.
November 14, 2013

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
TAGS
AUG Leaders

Atlassian Community Events