Forums

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

DatePicker Field

Alex Zager
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
November 13, 2022

Hello,
My apologies if this has already been answered; I can't find the relevant topic.

So, I have some integration with Jira and want to add an additional custom field with a date picker. However I don't want to add and static date, I'm looking for something more dynamic, for example, due date: from today + 30 days"
Any suggestions on how to customize this field?

 

"customfield_10002": "2022-11-13 +30 days"

Thank you in advance

2 answers

0 votes
Alex Koxaras -Relational-
Community Champion
November 13, 2022

Hi @Alex Zager and welcome to the community,

If you want to add calendar days, then .plusDays(number_of_days) is the way to go.

If you want to add business days, then .plusbusinessDays(number_of_days) is the way to go.

0 votes
Walter Buggenhout
Community Champion
November 13, 2022

Hi @Alex Zager and welcome to the Community!

The field and the value in it are two different things. You should be perfectly able to add a regular date picker custom field, which you then fill out via the logic in your integration. How you do so depends on how you interact with Jira.

If there is any reason why you cannot provide the proper value for the field from your integration, Jira's built in automation is perfectly capable to fill out a calculated value using smart values.

e.g. the following calculation would add 30 days to the current date.

{{now.plusDays(30)}} 

 Hope this helps!

Alex Zager
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
November 14, 2022

Hi, thanks for the lead, however it seems like not working for me
I run :  {"customfield_10902":"{{now.plusDays(30)}}"}

and still got an error:Screen Shot 2022-11-14 at 10.57.27.png

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
TAGS
atlassian, loom, loom for training, loom for teaching, video training, async learning, online education, screen recording, loom tutorials, loom use cases, atlassian learning, team training tools, instructional video, virtual training tools

🛗 Elevate Your Training and Enablement with Loom

Join us June 26, 11am PT for a webinar with Atlassian Champion Robert Hean & Loom’s Brittany Soinski. Hear tips, stories, and get your burning questions answered. Learn how Loom makes training and enablement easier. Don’t miss it!

Register today
AUG Leaders

Atlassian Community Events