How to clear a system field eg: in log work date started

Mohanbabu Somasundaram December 25, 2019

Need to clear date started field. if user click on log work the system field date started should be cleared.

1 answer

0 votes
Nic Brough -Adaptavist-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
December 26, 2019

You will need an automation or scripting app to provide a listener function that can spot the log-work event and clear out your custom "date started" field (it's not a system field, Jira doesn't have a date started field built in)

Mohanbabu Somasundaram December 27, 2019

Hi Nic 

Thanks for your update, do you able to provide me a sample script for this scenario, I have script runner addon to implement this.

Nic Brough -Adaptavist-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
December 27, 2019

https://library.adaptavist.com/entity/change-the-value-of-a-custom-field-in-a-post-function is a good start.  It sets a text field to some text, but you can just set your "date started" to null to blank it out.

Mohanbabu Somasundaram December 30, 2019

Thank you Nic i will check this script and update you if there is an issue.

Suggest an answer

Log in or Sign up to answer