Create an automated datepicker from due date field

I am very new to Jira and have no coding experience. I have two custom datepicker fields which I would like to automatically change depending on the due date field. One would be a week before the due date and one would be two weeks before. Is it possible to do this?

Thanks

Hannah

4 answers

1 accepted

#1 For transition screens you have option to take JSU plugin (https://marketplace.atlassian.com/plugins/com.googlecode.jira-suite-utilities)

Go through https://jsutil.atlassian.net/wiki/display/JSUTIL/JIRA+Suite+Utilities+Workflow+Post-Functions

the following images help you.

#2 For Editing issues, you need to go for coding(i.e Listener to catch ISSUE_UPDATED event) or else you need to hack the core code of jira or else you need to tweak your code into jira plugin(quick-edit-plugin).

I have tried to enter javascript into the description field of the custom datepicker but it just disappears and does nothing...any suggestions?

If I want the the field I am copying to to show a different value to the due date, such as -& days, how would I go about this?

could you explain in more detail?

I have a field called Copy deadline (date picker custom field) which is 7 days earlier than the Due date. I would like this to be automatically updated when the due date is changed. The suggestion above looks like it is just duplicating the field. I got someone to test putting javascript into the description field but nothing happened, although I wouldn't know what the code to input would be.

in that case you can write event listener which listens for ISSUE_UPDATED event.

In the listener, you can mention that Copy deadline should be updated based on the updated value of Due date field.

If it is fine for you, you can go through

https://developer.atlassian.com/display/JIRADEV/Writing+JIRA+Event+Listeners+with+the+atlassian-event+Library

https://confluence.atlassian.com/display/JIRA/Listeners

Sorry, this will not work in JIRA OnDemand.

Do want this changes on create/edit or on screen?

At the moment I am project lead and am manually entering the dates after the issues have been created and then going back to change them if the due date is edited. The date pickers shoudler be visible in all screens I think. I'm not sure if I answered your question.

Suggest an answer

Log in or Join to answer
Community showcase
Sarah Schuster
Posted Jan 29, 2018 in Jira

What are common themes you've seen across successful & failed Jira Software implementations?

Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...

2,853 views 12 18
Join discussion

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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot