Forums

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

Custom Date Field Default to X Days From Today

Jeffrey Bistrong
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.
June 11, 2020

I have a custom date field, that I would like to default to X days from today.

 

I found this super old article that says it cannot be done natively, but that was in 2011.

https://community.atlassian.com/t5/Jira-questions/Can-custom-date-fields-be-defaulted-to-a-value-relative-from/qaq-p/177590

I know I can do this with Automation for Jira, using the logic, when issue created if this field is blank, then set it to be 15 days from today,  but I was curious this logic can be done on the issue create screen?

Create Custom Field - Defaults - JIRA 2020-06-11 08-35-10.png

1 answer

1 accepted

0 votes
Answer accepted
Joshua Sneed Contegix
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.
June 11, 2020

Hi Jeffrey,

I have seen field values set on the Create screen prior to issue creation, but not with a date field. It was using Scriptrunner Behaviours. The problem is that the value can be modified by the user if the field appears on the Create screen. Preventing users from modifying the field before issue creation dictates placing the field on only the Edit and View screens. This negates the need for Scriptrunner and allows you to use Automation as you described. Cheers!

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events