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

Log work via scriptrunner for Ultimate Role Tracking and Estimation Plugin

C Warwick Nov 07, 2016

How do I use this plugin and log work programatically via the script runner?

1 answer

0 votes
Abhinav Ojha Nov 07, 2016


We have REST services for the Log Work (by Roles) information. You can call POST service as mentioned below, and feed it the data as the format I give, which will log/update work for you on the roles of your choice.

You can read here, how to make REST calls from script runner :

The PUT service is : {context path}/rest/adweb/2/logworkCF/worklogImport

The data you feed will be like the following :

 "worklogroles": [
 		"issueKey": "JT-2",
 		"roleId": 10000,
 		"worklogId": 0,
 		"worklogAuthor": "admin",
 		"timeSpent": 21600,
 		"startDate": "Wed Mar 30 18:07:00 IST 2016",
 		"worklogDesc": ""
 		"issueKey": "JT-3",
 		"roleId": 10001,
 		"worklogId": 0,
 		"worklogAuthor": "admin",
 		"timeSpent": 120,
 		"startDate": "Wed Mar 30 18:08:00 IST 2016",
 		"worklogDesc": ""

Here you can see, you can have as many number of worklogs you want.

Here you should note that "worklogId" is 0, which will create a new worklog, but if you want to update an existing logwork, you can provide a logwork id there.

The time spent is in seconds.

The startDate format should be in the format : "EEE MMM dd hh:mm:ss zzz yyyy".

I hope this should help you.

Please let us know if you face any trouble in this or if you have any further queries.




Suggest an answer

Log in or Sign up to answer
This widget could not be displayed.
This widget could not be displayed.
Community showcase
Published in Next-gen

Introducing subtasks for breaking down work in next-gen projects

Teams break work down in order to help simplify complex tasks. This is often done iteratively, with tasks being broken down into smaller tasks and so on until the work is accurately captured in well-...

940 views 12 15
Read article

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