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

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 Leaders.
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 Leaders.
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!

Suggest an answer

Log in or Sign up to answer