Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,466,234
Community Members
 
Community Events
176
Community Groups

Copy worklog description to comment

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 Community Leader Jun 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.

Thank you for the quick reply!

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

@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 Jan 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 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.

tim_black I'm New Here Jan 30, 2023

@Reindert Vanderhaeghen @Florian PEREZ 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

Atlassian Community Events