Forums

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

LogWork Action When Transitioning Items

Ricardo Oliveira May 15, 2020

Hello!

Is there a way to force the user to log their work when transitioning an item? For example: whenever this user wants to move a task from "In Progress" to "Code Review", this user would not proceed unless the LogWorkDate field is fulfilled. 

I took a look into the Automation settings, however the only option I cound find makes the admin to set the hours automatically, which not makes sense in my case because the log time will differ from task to task.

JiralogWORKISSUE.PNG

2 answers

2 accepted

0 votes
Answer accepted
Ricardo Oliveira May 15, 2020

Hi @Tansu Akdeniz 

 

Thank you for the reply! I have an additional question based on your answer: Can I create this Validaton only to my project? I am asking because the current workflow my project is plugged involves many other projects and I would not like to create one for my own or to affect the others.

 

Thanks

Tansu Akdeniz
Community Champion
May 15, 2020

As you said, it doesn't work with shared workflows.

If you have JMWE add-on, you can use "Field Required Validator (JMWE app)" in order to give conditional validation. Or you can do it with script runner add-on.

0 votes
Answer accepted
Tansu Akdeniz
Community Champion
May 15, 2020

Hi @Ricardo Oliveira

Welcome to community.

Automation feature doesn't seem a right solution. Because it automates lots of things, doesn't interrupt an action.

Please follow these steps:

  • Go to related workflow and edit
  • Find the transition btw "In Progress" to "Code Review"
  • Go to validators -> Add validator
  • Add "Field Required Validator"
  • Choose "Time Spent" field as required
  • Publish the workflow.

ps: There should be a screen in that transition and it should include "Logwork" field. Otherwise, when user clicks the transition button, it immediately goes to Code Review step.

Regards

Suggest an answer

Log in or Sign up to answer