Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Deleted user
0 / 0 points
Next:
badges earned

Your Points Tracker
Challenges
Leaderboard
  • Global
  • Feed

Badge for your thoughts?

You're enrolled in our new beta rewards program. Join our group to get the inside scoop and share your feedback.

Join group
Recognition
Give the gift of kudos
You have 0 kudos available to give
Who do you want to recognize?
Why do you want to recognize them?
Kudos
Great job appreciating your peers!
Check back soon to give more kudos.

Past Kudos Given
No kudos given
You haven't given any kudos yet. Share the love above and you'll see it here.

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Question about external time tracking in JIRA

Hi all,

 

I put a question on the atlassian forum regarding tracking time spent each month for people outside of my organization, but unfortunately no one was able to help. Can anyone in here tell me if the following is possible? Any help would be greatly appreciated!

 

"I would like to implement a solution where I can track time each month for each issue in a board. That being said, I need the time to be reported from an external part that is not inside my JIRA project. The ideal setup would be: At the end of each month an email goes out to the contact person in the issue (external person) --> they report the time (is there an app for this?) --> the hours for each month is collected in the issue.  "

1 answer

Hello Chris,

With Power Scripts you can schedule a script to run and send an email for each issue in a JQL search. Here is an example SIL script:

string jql = "project = EX";
string [] issues = selectIssues(jql);

for (string issue in issues) {
    JWorklog [] worklogs = getWorklogsForIssues(formatDate(currentDate(),             "yyyy-MM-dd"), currentDate(), "EX-1", currentUser());
    interval totalHours = 0;
    for (JWorklog worklog in worklogs) {
        totalHours += worklog.timeSpent;
    }
    sendEmail("first.last@example.com", "hours logged for issue: " + key, "total        hours worked: " + totalHours);
}

 

Here is documentation on SIL Scheduler, mail configuration and sendEmail() routine.

Here is an example using HTML with the sendEmail() routine.

Please let me know what you think!

Regards,

Hyrum

Because of Confluence Cloud security features, you may need to open the documentation in incognito mode or by logging out of Confluence.

Full disclosure, I am a product engineer with Anova Apps (Appfire), which makes Power Scripts.

Suggest an answer

Log in or Sign up to answer
TAGS

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you