Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How to clear a JMCF Transition Date/Time field upon a backwards transition

Sara Wortman
Contributor
October 23, 2020

We are using the Transition Date/Time fields to gather when an issue was moved into each status. However, we want to be able to clear that field if the issue moves backwards in the workflow. 

Example/ Issue moves from Make Ready to Ready on 10/23. The Date in Ready field will say 10/23. On 10/24, we decide to move the issue back to Make Ready. Now Date in Make Ready is overridden to be 10/24. We want to remove the 10/23 from the Date in Ready field so when we collect metrics, we can recognize that the issue wasn't actually in Ready.

Have tried the Clear Issue Field post-function on the backwards transition and it has not worked. Does this post-function not work for JMCF fields?

1 answer

1 accepted

0 votes
Answer accepted
David Fischer
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
October 23, 2020

You cannot clear calculated fields, because their value is not stored but... calculated. If the transition happened, it happened, and triggering another transition won't change the past. 

For your use case, you can either create a standard date/time field and set it during the transition and clear it during the reverse transition (with the help of a post function such as the Set Field Value post function from our JMWE app), or you can create an additional Calculated Date/Time field that will return the transition date/time field value only if the issue status is Ready, and null if it isn't. 

Sara Wortman
Contributor
November 12, 2020

very helpful, thank you!!

Suggest an answer

Log in or Sign up to answer
TAGS
atlassian, atlassian government cloud, fedramp, webinar, register for webinar, atlassian cloud webinar, fedramp moderate offering, work faster with cloud

Unlocking the future with Atlassian Government Cloud ☁️

Atlassian Government Cloud has achieved FedRAMP Authorization at the Moderate level! Join our webinar to learn how you can accelerate mission success and move work forward faster in cloud, all while ensuring your critical data is secure.

Register Now
AUG Leaders

Atlassian Community Events