It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

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

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.

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
TAGS
Community showcase
Published in Next-gen

Keyboard shortcuts have arrived for next-gen projects!

...ollected feedback from users around the lack of shortcuts, and we’re here to address that: In next-gen projects, I miss the keyboard shortcuts badly. This is particularly true on the Board, but also i...

147 views 0 2
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you