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: 

An issue with making work log mandatory

Chethana Hashani
Contributor
August 22, 2018

Hi,

In my team some members log their work precisely in other hand few members miss to log their work. So I added a field required validator to "In-progress > Done" transition. But now I am facing an unexpected issue. As I said some of team members log their work in a daily basis even though the task  is in the "In-progress" status. These guys completely log all of their work in to the task when the task is in the "In-progress" status and when the task is finished, they just have to move the task from the "In-progress" status to "Done" status. (At that point they have logged the entire work they have spent to the task). But when they try to do the transition, they are again asked to enter the work because of my validator. Is there a way to validate "Only if the work log field is empty during this transition, the user is asked to log work"?

Cheers,

Hansi

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new 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 Champions.
August 22, 2018

Hello,

You can not do it out of the box. You would need an add-on for it.

For example, you could use the Power Scripts add-on:

https://marketplace.atlassian.com/apps/43318/power-scripts-jira-script-automation?hosting=cloud&tab=overview

With this add-on you could write a validator with a code like this:

number[] work = getWorklogIdsForUser(currentUser(),key);
if (size(work) > 0) {
return true;
} else {
 return false;
}

If a user logged work for this issue, the validator will let the user transition this issue.

TAGS
AUG Leaders

Atlassian Community Events