Forums

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

We want to validate if user is submitting time against their assigned issues.

Niharika Verma September 30, 2021

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

1 answer

0 votes
Mykenna Cepek
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 Leaders.
September 30, 2021

Hi @Niharika Verma - Can I clarify a few things in your question?

  1. When you say "teams", do you mean "Tempo Teams"? Or do you mean "people with access to a specific Jira project"? Or something else?
  2. When you say "scripting", do you mean custom coding to use the Jira REST API? Or are you referring to a specific scripting Jira Marketplace app?
  3. Would you consider the use of Jira Automation to be "scripting"?
Niharika Verma October 1, 2021

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,

Mykenna Cepek
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 Leaders.
October 1, 2021

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!

Niharika Verma October 4, 2021

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.

Suggest an answer

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

Atlassian Community Events