Hi all,
I have set a transition validator to check Time Spent isn't empty on tasks. However, if a task has subtasks for which time was logged, it also throws an error because technically the main task didn't get time logged on it.
How can I set the validator to check if Time Spent or ∑ Time Spent isn't empty? There doesn't seem to be a way to do OR statements for validators.
@Marine Redon Thanks for clarifying. It sounds like a limitation of the standard Jira validator, since Time Spent and Σ Time Spent are treated as separate fields and can't be combined with an OR condition. You may need a marketplace app like ScriptRunner or Jira Workflow Toolbox to handle this scenario.
Hello @Marine Redon
Looking at your screenshot, it seems the parent issue already shows logged time when subtasks are included. Have you tried validating against Σ Time Spent instead of Time Spent? Depending on the validator you're using, it may recognize the aggregated time from subtasks.
Which validator/app are you using? That might help narrow down the solution.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Yashodip Jadhav I am using the standard Jira worklog function. The time shows on the parent task solely because I have ticked 'Include subtask', but it seems to just be a UI indicator, it does not edit the Time Spent value on the main task.
If I use ∑ Time Spent, it does not recognise logs on the main task.
For some reason, Time Spent and ∑ Time Spent are 2 different fields that cannot seem to be combined.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.