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

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

1 answer


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 Thursday in Confluence

Confluence CVEs and common questions

Two vulnerabilities have been published for Confluence Server and Data Center recently: March 20, 2019 CVE-2019-3395 / CVE-2019-3396 April 17, 2019 CVE-2019-3398 The goal of this article is...

144 views 0 11
Read article

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you