Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

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

Require Comment if Date Field Changed

Is there a way to require a comment if a date field has changed? I have tried through automation and through the workflow, but I'm not finding a solution.

5 answers

1 accepted

0 votes
Answer accepted
Curt Holley Community Leader Jul 06, 2021

@Coby Fuller you could also add into the automation suggested by @Darshan Mandhane an email (back to the initiator) or a slack or Teams message to a channel letting them know the date had changed and to add a comment providing a relevant justification for the change....if you like?

Reactive rather than proactive I realise, but easy to do.

I had not considered an email or teams message to the supervisor who has made this request. If they are interested in knowing when a date is changed, I can send them a teams message with the information of the change. Thank you @Curt Holley and @Darshan Mandhane for contributing.

Like Darshan Mandhane likes this

First of all, it is there in the bottom section under History.

However, if you specifically want to add a comment if a date field is changed, use "Automation Rule" which is triggered on the change of the concerned date field and adds a comment about the change.

I am adding a screenshot of what I meant.

 

Screenshot 2021-07-06 at 7.23.12 PM.png

 

You may also write variable substitutions in the comment if you want to put the actually changed date timestamp.

Official documentation on same: https://www.atlassian.com/software/jira/guides/expand-jira/automation

@Darshan Mandhane Thank you for taking the time to respond. I had considered this and even had the rule created, but decided to remove the automation rule. I would like to for the teammates to get into the habit of adding a comment if they need to change a date. Automating a comment that they typically ignore just was not working.

0 votes
Jack Community Leader Jul 06, 2021

Not OOTB. If you were using CMP then you can require a comment using a validator on the workflow transition. However if you’re just updating a field then you would have to construct a listener that would watch the date field and then present a modal for the comment. This would require an add-on such as scriptrunner or similar.

@Jack Thank you for taking the time to respond

0 votes

Automation is more for "backend" algorithmic responses to changes in Jira (not "front-end" / GUI). There is no support for interacting with a user, beyond manually triggering a rule to execute.

Workflow interaction is limited to status changes (transitions), where a screen can be involved to offer optional fields and enforce required fields in order to complete a transition.

Thank you for taking the time to respond @Mykenna Cepek 

Depending on the number of statuses in your workflow, this could be a lot of work... but perhaps put the Date field on only the View screen(s), so it cannot be edited. Then add a loop transition (transition to and from the same status) to all relevant workflow statuses called Change Date (or something to that effect). Create a transition screen for this loop transition and add the date field. Add validation that a comment must be added - the validation message can state "Provide a reason for changing the date in the comment field."

That's the only way I can think of enforcing a comment for a date change out of the box.

To make it happen, the user has to perform the transition from current status to the same status, otherwise, the pop-up would not appear.

Yes, that's what I suggested. 

@Greg Williams Thank you for taking the time to respond. Although this does make sense to me, the workflow that I would need to add this to is a monster. As you stated above, it would 'be a lot of work'. From my perspective, this is all about communication and the team needs to get better at it, and get into the habit of adding comments if they change date fields. 

Like Greg Williams likes this

Suggest an answer

Log in or Sign up to answer
TAGS

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