The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

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

How can I stop users from moving a ticket to a certain status without logging time?

Mimi Gebara
August 6, 2018

For example, 

 

Can I set up Jira so that users can't move a ticket from In Progress to Peer Review unless they have time logged against the ticket?

2 answers

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

1 vote
Alexey Matveev
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Champions.
August 7, 2018

Hello,

You can use the Power Scripts add-on for it. You would need to write your own validator and attach this validator to the transition from In Progress to Peer Review.

Your code would look like this:

number[] worklogs = getWorklogIdsForUser(currentUser(),key)
if (size(worklogs) == 0) {
  return false, "You need log time";
}

You can use this plugin for 30 days free of charge.

Mimi Gebara
August 7, 2018

Thank you will try this out!

0 votes
Yogesh Mude
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Champions.
August 6, 2018

HI @Mimi Gebara

Welcome to the community!

We can do this with Field configuration scheme but it will make this field mandatory for each and every screen including Issue create screen as well.

Another option is you can use the Jira Suite Utility add-on, it will provide you can Field Required validator using this you can make the field mandatory only for that particular transition.

Here is the discussion, please have a look at it.

Mimi Gebara
August 7, 2018

Thank you will try this out!