Hi Team,
In a Tempo, we have multiple teams and multiple project links and members in that teams.
We have requirement that only team members should be able to submit the hours in those projects which are linked to their teams.
Please let me know if there is anyway to do this apart from scripting.
Thanks,
Niharika
Hi @Niharika Verma - Can I clarify a few things in your question?
yes, its tempo teams.
I am trying to use ScriptRunner for scripting in JIRA.
If it's possible to validate tempo hours through automation.
We want to users add worklog against assigned issues only.
Thanks,
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I've not used ScriptRunner, but it looks like you can use it to make REST API calls.
So between the JIRA API and the Tempo API, I would think you have all the tools you need for some level of support for your validation use case.
I'm not sure if ScriptRunner gives you the ability to insert a validation check between the point where a user submits a new Worklog Entry, and when it is actually saved in Jira/Tempo.
If that's not available, then you're probably restricted to after-the-fact validation. That is, you can detect that a Worklog Entry was added, and then use the API(s) to confirm that it meets your validation criteria (user in on the appropriate team). You could then respond with a notification to the user, project lead, admin, etc. And/or you could potentially even delete the Worklog Entry.
Lots of options. Feel free to update this thread later to share the approach that ended up working for you! That way others can learn from your experience.
Hope that helps!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks for providing answers.
i am using scriptrunner and planning to have scheuled job which can run on nightly manner to validate if users are filling timesheet against their assigned issues only.
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.