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?
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 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.
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!
Unfortunately there are no AUG chapters near you at the moment.Start an AUG