Make time spent mandatory for group of developers

Hi all,

In our workflow (JIRA 6.3.3), we would to ensure that when a developer resolves the issue, he logs Time Spent. However, since partners also can resolve issues, they are not obliged to record time. So, we would like to add validation like this:

If user in group <developers> then Time Spent cannot be null at Resolve action.

We tried JIRA Behaviors plugin, but it looks like cannot deal with Time Spent field.

What is the best way (Ideally if one can provide an example) to implement this check?

3 answers

1 votes

I'd use the script runner to write a "validator" - it should be easy to pick out the current user's group (or role?  Roles are better and easier to use than groups) and whether their update includes Time Spent data.

You can use the "Field has been modified" validator or the "Field is Required Validator" validator, or both.

Um, that only gets part of the requirement (what about the type of user?), and can't handle "Time Spent" anyway.

Ooops! You are right, Nic. I didn't notice this detail! These validators worked fine on my workflows, but I hadn't the user restriction.

We've all jumped down the wrong bunny hole at times ;-)

0 votes

You can have 2 resolve transitions, one visible only to "developers" and another visible only to "partners".

On the "Resolve" transition visible to developers, you can use a workflow validator to make sure "timeSpent" is not empty.

Suggest an answer

Log in or Join to answer
Community showcase
Sarah Schuster
Posted Jan 29, 2018 in Jira

What are common themes you've seen across successful & failed Jira Software implementations?

Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...

2,849 views 12 18
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot