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

When changing a field i want the comment field to be required(or a screen to pop)

When anyone changes the due date for an issue i want to know why by a screen or to make a comment required ,, can i do it? 

its not related to the transition in the workflow, only a field change.

Thank you

3 answers

no, you can't do it as you describe it. The compromise solution:

Allow only to edit that field on a transition (from one status to the same status) and as part of the transition add a validator that a comment is added as well. Won't end being the prettiest workflow at all, specially if you are going to do allow this type of transition on many of your workflows status. Personally I wouldn't set up these on more than 2 status at most.

Hi @Baraa براءة did this help you solve your issue? do you need any extra assistance? would be good to mark this as solved if it's really the case

Hi @Baraa براءة ,

I usually implement those business logics by removing the field from the edit screen, adding a specific transition (might be a global reflexive one - "from any status to itself") and also adding a validator to this transition (if field is changed, require comment). In order to do so, please check for a workflow app (if you don't have one installed already) here: https://marketplace.atlassian.com/categories/workflow

Cheers
Thorsten

0 votes
Jack Community Leader Oct 22, 2019

consider an addon, e.g. Scriptrunner, Automation for Jira, Power Scripts, etc. especially if you already have a suitable addon installed.

i have automation for jira , how can i don it?

Jack Community Leader Oct 28, 2019

I mislead you. Not sure what I was thinking at the time. :-(

As Hernan stated, you can only require a comment as part of a transition. Automation for Jira won't get you there. You might be able to write some java script to get you there but have never attempted so can't really assist there.

the right solution, as Hernan and Thorsten mentioned is to allow the field to be edited only associated w/ a transition.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Jira

The add-in you’ve been waiting for: Jira Cloud for Excel 🙌

Introducing Jira Cloud for Excel Here at the product integrations team at Atlassian, we are thrilled to announce the new Jira Cloud for Excel add-in! This add-in lets you export Jira data directly ...

841 views 5 22
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