Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How to programmatically update a worklog's comment?

first last
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
August 3, 2018

I'm integrating a system my company uses with jira (i'm building a java plugin using the atlassian plugin sdk) and i need to be able to store additional information with every worklog. I know i create a custom table and save that there, but it is just a short String and i would rather save it as part of the created worklog.

Is it possible to programmatically edit a worklog's comment after it has been created?

thanks

2 answers

1 vote
Alexey Matveev
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 4, 2018

Hello,

You can use the Power Scripts add-on to update worklog's comment. Your script would look like this:

updateWorklogAdjustEstimate(10000, "2h", currentDate(), "your comment");

You can find more info here:

https://confluence.cprime.io/display/SIL/updateWorklogAdjustEstim

There is a 30 days trial period for this add-on.

0 votes
Mark Markov
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 3, 2018

Hello @first last

I ve checked worklog api, worklog service and it seems you cant.

There are no mutable worklog object.

Suggest an answer

Log in or Sign up to answer