Hi,
Is there any plan (if it is even possible) to embed the Role information within the standard worklog JSON content, both from the JIRA REST API's and the Webhook Post Body (on the various webhookEvents that send worklog data)?
From what I understand so far what Role the work was logged against is not available in the standard API's and instead you must use;
{context path}/rest/adweb/2/logworkCF/{IssueKey}
This then gives you a Role ID which you must then use the JIRA Role API to lookup the name;
{context path}/rest/api/2/role/{roleId}
Therefore in order to get the information I am required to do 2 additional API hits per initial request which isn't ideal.
Thanks,
John
Hi John,
We can definitely add up more role information in our existing APIs. We can't possibly modify the existing APIs of JIRA.
Thanks,
Abhinav.
Hi Abhinav,
Thank you for you response.
Would it be possible to consider the following;
{
"worklogroles": [
{
"issueKey": "JIRA-1111",
"roleId": 10130,
"roleName": "RoleName",
"worklogId": 115968,
"worklogAuthor": "john.bartlett",
"timeSpent": 10800,
"startDate": "Thu Oct 19 16:11:00 BST 2017",
"worklogDesc": "Logging Developer Time"
}
]
}
Thanks,
John
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
I have just taken the latest release of your plugin and see you have added the roleName to the response on the above API call.
Did you do either iof the other points I have mentioned above?
Allow filtering on the above API call so that I can find only work logs for a given Worklog id and/or author?
Maybe to reduce the amount of data being transmitted just open up an API so that you can request which role a work log id was for?
Have you got updated documentation for your API's?
Thanks,
John
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.