How to find out the Date CustomField value has changed in Jira Postscript function.

I have a custom field of type Date Picker. This date picker decides to which platform the issue is moved to. we have 4 platforms (dev, test, uat, prod). If the DatePicker value is not null i have a post script to create subtask for the platform On Create Transition. I want to check if the DatePicker value is changed/updated on CustomEdit Screen to write a post-function.

We can move the issue directly to 2 platforms and it creates 2 subtasks. Each platform has datepicker field. We are restricted to create only 1 subtask per platform and this should be generated based on the value of the Datepicker Field on create Transition or CustomEditTransition. So each issue can have any number of subtasks but limited to only 1 subtask per platform that are created from postfunction.

My edit screen has only comment box. where as the CustomEdit screen has the DatePicker Field and both the screens are part of same issue type using same workflow.

I just want to find out if the Datepicker value is same on Create and while Editing the issue on CustomEdit Screen. If the Datepicker is same then i don't want to create a subtask however if there is a change then i want to decide whether to use the existing subtask or create a new subtask.

2 answers

This widget could not be displayed.

you can't add postfunction to edit screen, if you want to edit the date picker field then add new intermediate workflow action(some thing like "Update target date") with the date field and configure postfunction to this transition.

remove the date field from edit screen.

I think it should work for you..

we cannot remove the date from edit screen. we give always user to change the date and it is part of our requirements.

you need to remove from edit screen but you are providing option to edit through workflow action in all states

My edit screen has only comment box. where as the CustomEdit screen has the DatePicker Field and both the screens are part of same issue type using same workflow.

This widget could not be displayed.

You can try using the Behavior plugin, which lets you run a server-side script if when the field value is changed.

Suggest an answer

Log in or Sign up to answer
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Posted Wednesday in Teamwork

What teamwork quotes inspire you?

Hey everyone! My name is Natalie and I'm an editor of the Atlassian Blog and I've got a question for you: What's your favorite quote about teamwork?  We've compiled a list here, along with...

150 views 16 7
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