Pick due date based on the custom field date

Swarna Radha
Contributor
June 17, 2019

Hi,

 

I want to insert a date which based on another custom field date. See example example

 

BOM Due date : 21/06/2019

When I click on due date i should be able to pick a date from today date till 21/06/2019.

 

Is there any script for this scenario?

 

Thanks,

Swarna

2 answers

1 vote
Iago Docando
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 18, 2019

Maybe a workaround to simplify things and avoid scripting, in case you'd rather go this route:

  1. Use a normal date picker.
  2. Create a new intermediate step in your workflow at the point where you want to set the date.
  3. Create a new screen with the normal date picker and associate it to the new transition.
  4. Add a condition to the new transition comparing two fields, where your date field has to be not greater than your BOM Due Date.

Hope it helps.

brbojorque
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
June 18, 2019

I approve of this!

Like Iago Docando likes this
Iago Docando
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 18, 2019

In case you need extra conditions, postfunctions, custom fields, etc. make sure to check some interesting free plugins like Jira Suite Utilities or Workflow Enhancer. 

Iago Docando
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 18, 2019

_

0 votes
win htet naing June 17, 2019

I think , need script.

Swarna Radha
Contributor
June 17, 2019

Hi yes, I need a script for the above scenario.

brbojorque
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
June 17, 2019

Hi @Swarna Radha ,

You can use ScriptRunner behavior to achieve this functionality.

Or you can even use a custom javascript to do it.

Suggest an answer

Log in or Sign up to answer