Document toolboxDocument toolbox

Worklog query Example

Example 1

JIRA_URL/rest/jttp-rest/latest/worklog-query/worklogQuery?filterConditionJson={"groupUsers":["users:testUser"],"worklogEndDate":2017-12-16,"worklogStartDate":2017-11-24}

It returns each worklog created by the testuser between 2017.11.24 and 2017.12.16 according to the permissions of user running the query.

A possible response:

[
	{
		"customFields":{
			"Epic Colour":"ghx-label-9",
			"Epic Status":"To Do",
			"Rank":"0|i0001b:",
			"Sprint":"",
			"Epic Name":"EpicName",
			"Epic Link":"",
			"Story Points":""
		},
		"details":{
			"issueAffectedVersions":["1.0.2"],
			"issueAssignee":"testUser",
			"issueComponents":[],
			"issueCreated":"Nov 25, 2017 9:10:04 AM",
			"issueFixedVersions":["1.0.3"],
			"issueKey":"ISSUE",
			"issueOriginalEstimate":3600,
			"issueRemainingEstimate":240,
			"issueReporter":"testUser",
			"issueStatusName":"To Do",
			"issueSummary":"Test Issue",
			"issueTypeName":"Epic",
			"issueUpdated":"Nov 26, 2017 9:17:40 AM",
			"labels":[],
			"priorityName":"Medium",
			"projectName":"Project",
			"subTasks":[],
			"worklogBody":"Test worklog",
			"worklogCreated":"Nov 26, 2017 9:17:40 AM",
			"worklogStartDate":"Nov 26, 2017 8:00:00 AM",
			"worklogTimeWorked":480,
			"worklogUpdated":"Nov 26, 2017 9:17:40 AM",
			"worklogUser":"testUser"
		}
	}
]


Example 2

It is an other example of a more detailed query.

JIRA_URL/rest/jttp-rest/latest/worklog-query/worklogQuery?filterConditionJson={"groupUsers":["users:testUser01","users:testUser02"],"worklogEndDate":2017-12-16,"worklogStartDate":2017-11-24,"issueKeys":["ISSUE"],"projectKeys":["PROJECT"],"issueStatusNames":["To%20Do"]}			

Example 3

It is an other example of using the customFieldsFilter query parameter.

JIRA_URL/rest/jttp-rest/latest/worklog-query/worklogQuery?customFieldsFilter=[10120, 10500]&filterConditionJson={"groupUsers":["users:testUser01","users:testUser02"],"worklogEndDate":2017-12-16,"worklogStartDate":2017-11-24,"issueKeys":["ISSUE"],"projectKeys":["PROJECT"],"issueStatusNames":["To%20Do"]}