Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

can validate the time spent in the validator section

divya krishna January 12, 2025

Can you check if we can validate the time spent in the validator section?

 For example, when you log hours in a ticket, can we validate that in the validator?

Using automation for jira or any other add-on

 

2 answers

0 votes
Richard Bariny January 13, 2025

In automation you are not able to make a validation.
automation is triggerd AFTER transition is done. 

 

validate user input can be done by validators plugins for example:

https://appfire.atlassian.net/wiki/spaces/JMWEC/pages/466226183/Build-your-own+scripted+Validator 

however we did not get answer what do you need to validate?

logged time > 8h? validate log description? or what is use case for validation?

divya krishna January 13, 2025

when you log hours in a ticket, can we validate that in the validator?

Richard Bariny January 13, 2025

You can validate input only on transition BEFORE it is saved to application data.

you are not able to make validator on log action button, because it is not workflow operation. you can prepare transition in Workflow, "Log time" and input log field to transition screen and validate it.

you are not able to make validation AFTER the input has been already written to application database (automation / listener)

automation can for example notify you about new log.

you can listen for log event in listener, which can be built in:
script-listeners    but it is not validation. it is post action.

you can as well study tempo plugin, they are able to expand log action by required fields, etc.

https://community.atlassian.com/t5/Jira-questions/How-to-check-when-the-log-in-Tempo-was-made/qaq-p/2022014 

https://help.tempo.io/timesheets/latest/the-log-time-form 

0 votes
John Funk
Community Champion
January 12, 2025

Hi Divya,

What do you mean by validate the log hours? What exactly are you trying to do? 

Also, you cannot use automation to validate transitions in a workflow when the transition is performed by a user directly. 

divya krishna January 13, 2025

 when you log hours in a ticket, can we validate that in the validator and suggestion the solution 

John Funk
Community Champion
January 13, 2025

Can you give an exact example? I am still not following you. 

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
FREE
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events