Skip to content

Conversation

kwk
Copy link
Collaborator

@kwk kwk commented Sep 15, 2025

This finds Jira issues and their worklogs.

This adds the -worklog option to the stats, next to -commented, -resolved, etc.

You can set worklog_show_time_spent=on|off in your Jira config to adjust if you want to include the time that was spent on each work log (i.e. see (33m) in the first work log).

Fixes #428

Here is some example output:

* Issues with worklogs in jira: 2
    * LLVM-262 - Merge flang into llvm SRPM

      * Worklog: Tuesday, August 19, 2025 (33m)

        Created local branch "integrate-flang" in rpms/llvm an rpms/flang.
        Skimmed through the flang.spec file.
        Introduced "flang" build condition to rpms/llvm/llvm.spec.
        Added skeleton of flang package in llvm.spec using the new conditional.
        Will need to flesh out the packages and files section of flang in llvm.spec.
        I think we can live without this patch: 0001-Fix-fastmath-test.patch.
        The print_max_procs lua function in flang.spec is probably not needed. At least we had something similar in other formerly standalone packages and we didn't bring those optimizations...

      * Worklog: Wednesday, August 20, 2025 (2h 9m)

        Brought flang.spec over to llvm.spec.
        Flang doesn't build with LLVM_ENABLE_EH. For that reason I've set the issue to blocked.
        Turned off LLVM_ENABLE_EH just to get it building.
        TODO(kkleine): Need to adjust tests to use properly filter out tests instead of removing the file altogether.
        Started first mock build.

      * Worklog: Tuesday, August 26, 2025 (9m)

        * Checking build.log for failures.

Here's an example workflow of entering two worklogs (using jira-worklogger and then printing them using did today --jira-worklog. (Wait for the very end to see what this PR outputs.)

jira-worklogger-and-did

@kwk
Copy link
Collaborator Author

kwk commented Sep 15, 2025

I will add a config option to include or exclude the time spent for each worklog entry.

This finds Jira issues and their worklogs.

This adds the `-worklog` option to the stats, next to `-commented`,
`-resolved`, etc.

You can set `worklog_show_time_spent=on|off` in your Jira config.

Fixes psss#428
@kwk kwk force-pushed the fix-428-jira-worklog branch from 14be180 to b99fb55 Compare September 15, 2025 19:40
@kwk
Copy link
Collaborator Author

kwk commented Sep 15, 2025

I will add a config option to include or exclude the time spent for each worklog entry.

Done.

@kwk
Copy link
Collaborator Author

kwk commented Sep 23, 2025

If I understand correctly, the tests fail due to github exceeding its rate limit. "You have exceeded a secondary rate limit. Please wait a few minutes before you try again. If you reach out to GitHub Support for help, please include the request ID ED52:2DD345:1C0CE9C:63D0423:68C93C1C."

@kwk
Copy link
Collaborator Author

kwk commented Sep 23, 2025

If I understand correctly, the tests fail due to github exceeding its rate limit. "You have exceeded a secondary rate limit. Please wait a few minutes before you try again. If you reach out to GitHub Support for help, please include the request ID ED52:2DD345:1C0CE9C:63D0423:68C93C1C."

I reran the tests and they pass now, so I guess I was correct.

@kwk kwk requested review from psss and optak October 1, 2025 06:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

List Jira issues for which work was logged and add this to the output
1 participant