Forums

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

Copy worklog description to comment

Reindert Vanderhaeghen June 30, 2022

We are using the Tempo Timesheets plugin and when we log time in Tempo, we want to automatically copy the "Description" as an "Internal comment" in Jira. That way we can follow up everything what happened int the ticket.

So briefly:

Is it possible to copy the Tempo timelog decription as an Jira internal comment?

2 answers

2 votes
Florian PEREZ [Valiantys Administrator]
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.
June 30, 2022

Hello,

You can try to get this done by using scriptrunner for sure (even if I've no clue on how doing this).

You can also try to get this value into Automation (It's not garanty working solution) by grabbing the update issue event or maybe the worklog added event, the add the value to a custom value and finally copy it in comment.

Unfortunalty I'm not so confident on my knowledge using tempo with automatisation so I do m est on the best of my knowledge.

Hope this help.

Reindert Vanderhaeghen June 30, 2022

Thank you for the quick reply!

We'll have a look at scriptrunner and possible automations!

1 vote
Tim Black
Contributor
November 4, 2022

@Reindert VanderhaeghenI'm curious if you got any solution to this, as I suspect we have the same fundamental need.

# TL;DR;

  1. There were feature requests for rendering worklogs both in [Jira server](https://jira.atlassian.com/browse/JRASERVER-9170) and [Jira Cloud](https://jira.atlassian.com/browse/JRACLOUD-9170).
  2. Both are closed like a decade ago and [comments](https://jira.atlassian.com/browse/JRACLOUD-9170?focusedCommentId=1331986&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-1331986) suggest the way to achieve this is to have an Admin configure the Log Work field in Field Configurations to use the Wiki renderer.

Probably like you, I want to remove friction for my team to use Tempo by enabling them to use it to both:

  1. log their time AND
  2. document their work details for other teammates to see (like in Comments, but without having to duplicate)

Now that we all have the View Team Worklogs permissions, we can all see the tempo items in the middle of the page, and in the Worklogs tab at the bottom next to Comments, however the Worklog text has been heavily modified to the point of being useless as a Comment:

  1. Both Tempo Worklog views have had all whitespace stripped
  2. Both Tempo Worklog views do not render formatting
  3. The Tempo Worklog view in the middle of the page has been truncated to make it more likely to fit in the UI.

For example, the following long comment contains lists and code formatting markup:

This is an even longer, much, much much, much longer description, yes a very long description indeed, of:

1. Detail about what I did in this issue

2. Detail about another thing I learned in this issue

```

# a terminal output excerpt showing:

a command I ran and

the resulting error I got in the process

```

I'm really hoping a teammate can read this clearly because my work day is over and I'm on the West coast and teammates are in Mumbai and can pick this critical work up in the morning..

 

image(4).png

which looks like this in the issue:

image(5).png

 

# Alternatives

  1. Scriptrunner@Reindert Vanderhaeghen did you get very far here?
  2. Use Wiki Renderer for Worklogs?
    1. There were feature requests for rendering worklogs both in [Jira server](https://jira.atlassian.com/browse/JRASERVER-9170) and [Jira Cloud](https://jira.atlassian.com/browse/JRACLOUD-9170).
    2. Both are closed like a decade ago and [comments](https://jira.atlassian.com/browse/JRACLOUD-9170?focusedCommentId=1331986&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-1331986) suggest the way to achieve this is to have an Admin configure the Log Work field in Field Configurations to use the Wiki renderer.

Notes:

  1. Over [here](https://jira.atlassian.com/browse/JRASERVER-7553?focusedCommentId=458359&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-458359) i learned that Tempo just creates "normal Jira Worklogs".
  2. Over [here](https://community.atlassian.com/t5/Jira-questions/Jira-REST-get-rendered-worklog-comments-for-comments-21/qaq-p/679393) I learned there's a REST call to fetch rendered versions of Jira worklogs
tim.black
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!
January 19, 2023

Following up with another possible solution to @Reindert Vanderhaeghen 's original ask - to copy worklogs to comments where they will naturally be rendered in a more sane way than worklogs.

It would seem to me that this feature is as simple as adding a “Copy Description to Issue Comment” checkbox in the Tempo “Log Time” interface and modifying the "Log Time" handler to, when checked and Description string not empty, POST the Description string to `rest/api/2/issue/{issuekey}/comment` as described here.

This is probably what was implied by @Florian PEREZ [Valiantys Administrator] when mentioning Scriptrunner, to monitor the "Log Time" event and respond by the action I outline above.

I've sent a request to the Tempo team for recommendations here, proposing all the mentioned solutions, requesting feedback.

Like Deleted user likes this
tim.black
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!
January 30, 2023

@Reindert Vanderhaeghen @Florian PEREZ [Valiantys Administrator] I submitted this request to the Tempo support team, and they created this feature request in their ideas portal. Please go and vote for it if you are interested in the Tempo app supporting integrating Tempo-generated Worklogs into Jira issue comments.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
TAGS
AUG Leaders

Atlassian Community Events