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

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

How to get list of time spent grouped by worklog comment

I need to view the list of time spent group by worklog comment for analysis purpose. I could not find a way to achieve the same using jql or a plugin.

 

Could anyone please guide me on the same?

1 answer

0 votes

Hi @monilsyx 

Do you want to do this for one issue or all issues in a project?

You can use "Get Issue" REST API

(https://developer.atlassian.com/cloud/jira/software/rest/#api-rest-agile-1-0-issue-issueIdOrKey-get)

Example worklog in the response:

 

"worklog": [
      {
        "self": "https://your-domain.atlassian.net/rest/api/~ver~/issue/10010/worklog/10000",
        "author": {
          "self": "https://your-domain.atlassian.net/rest/api/~ver~/user?accountId=5b10a2844c20165700ede21g",
          "accountId": "5b10a2844c20165700ede21g",
          "displayName": "Mia Krystof",
          "active": false
        },
        "updateAuthor": {
          "self": "https://your-domain.atlassian.net/rest/api/~ver~/user?accountId=5b10a2844c20165700ede21g",
          "accountId": "5b10a2844c20165700ede21g",
          "displayName": "Mia Krystof",
          "active": false
        },
        "comment": {
          "type": "doc",
          "version": 1,
          "content": [
            {
              "type": "paragraph",
              "content": [
                {
                  "type": "text",
                  "text": "I did some work here."
                }
              ]
            }
          ]
        },
        "updated": "2020-01-06T09:04:05.688+0000",
        "visibility": {
          "type": "group",
          "value": "jira-developers"
        },
        "started": "2020-01-06T09:04:05.688+0000",
        "timeSpent": "3h 20m",
        "timeSpentSeconds": 12000,
        "id": "100028",
        "issueId": "10002"
      }
    ],

@Lenin Raj Rajasekaran , I need to do it for all issues in multiple projects. The common thing between them is issue type.

Yes I can do scripting like you suggested above to parse required data from response but I would rather prefer using a functional methodology using in-built jira functionality or existing plugin if you are aware about.

 

I really appreciate your efforts. Let me know if you know any alternative methodology doing the same.

 

Thanks,

Monil

Suggest an answer

Log in or Sign up to answer
TAGS

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you