Forums

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

Disable Advanced Roadmap

Michael Kornatzki
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 Champions.
September 13, 2021

Hi,

i am upgrading jira to version 8.19.0.

We use BigPicture and i want to disable the new added advanced roadmap.

Thanks

Michael

2 answers

1 accepted

0 votes
Answer accepted
David Fischer
Community Champion
March 25, 2018

You need to create a JMCF Calculated Number Field that returns just the year, as a number so that sorting and querying works best. 

The formula would be:

return issue.get(“duedate”) == null ? null : issue.get(“duedate”).getYear() + 1900;
ldogangul
March 25, 2018

I Have magaged to get it somehow.

The code I used is below:

<!-- @@Formula:
duedateTimestamp = issue.get("duedate");
long timestamp = duedateTimestamp.getTime();
Calendar cal = Calendar.getInstance();
cal.setTimeInMillis(timestamp);
duedateYear = cal.get(Calendar.YEAR);
return duedateYear;
-->

That formula gives me just the year  section of my duedate and that was I need.

Thanks for your help.

Levent

0 votes
Ivan Tovbin
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 Champions.
March 24, 2018

Go to Administration -> System -> General Configuration -> Advanced Settings and check the settings for jira.date.picker.java.format and jira.date.time.picker.java.format. These settings control the way dates are displayed in date picker type fields. For the correct formats check this documentation.

ldogangul
March 24, 2018

Hi Ivan,

Thanks for responce.

That is not what I need. I do not want to change the format of any dates. I just get the year value ot of duedate and write it down into a customfield. The current format is like  24/Mar/18  ----> I need the year 2018...

Thanks.. 

Ivan Tovbin
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 Champions.
March 24, 2018

Ah, I see.

You can try the following then:

import java.sql.Timestamp;

Timestamp dueDate = issue.getDueDate();
return dueDate.format("MM/dd/yyyy");

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events