You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm facing a problem though. I just started using taskwarrior and bugwarrior, and I want to catch up by downloading all my github issue into taskwarrior.
The thing is, by default, only the open issues/PRs are downloaded. A workaround I found for this is the following:
specify the github.query without state:open
pull a first time to get all issues/PRs
add state:open to github.query to filter out closed issues/PRs
pull a second time
But then, all the issues that are closed after the second pull, are closed with the end date set to the current date. I don't want this. I want the actual date when it was closed/merged.
So I figured I could also write a taskwarrior hook to modify the tasks when they are added by bugwarrior, but then I lack some info to properly update them. Here is how I would go:
set github.query so you get both open/closed issues
write and use a on-add or on-modify taskwarrior hook that will identify bugwarrior tasks, and mark them as completed with the githubupdatedat value as end value
But for this I need a value that tells the issue state! open, closed, or merged for PRs.
Also I think the githubupdatedat reflects the date of the last comment/reference/edit of the issue, not the date when it was closed, so I can't even use that value reliably.
So, in the end, what I'm asking is:
to add a githubenddate or githubclosedon (or else) UDA, set to none if is still open
to optionally add a githubstate UDA (I won't need it if I already have the githubclosedon date)
What do you think 🙂 ?
The text was updated successfully, but these errors were encountered:
Hi, thank you for bugwarrior, it's really great 🙂
I'm facing a problem though. I just started using taskwarrior and bugwarrior, and I want to catch up by downloading all my github issue into taskwarrior.
The thing is, by default, only the open issues/PRs are downloaded. A workaround I found for this is the following:
github.query
withoutstate:open
state:open
togithub.query
to filter out closed issues/PRsBut then, all the issues that are closed after the second pull, are closed with the end date set to the current date. I don't want this. I want the actual date when it was closed/merged.
So I figured I could also write a taskwarrior hook to modify the tasks when they are added by bugwarrior, but then I lack some info to properly update them. Here is how I would go:
github.query
so you get both open/closed issueson-add
oron-modify
taskwarrior hook that will identify bugwarrior tasks, and mark them as completed with thegithubupdatedat
value asend
valueBut for this I need a value that tells the issue state!
open
,closed
, ormerged
for PRs.Also I think the
githubupdatedat
reflects the date of the last comment/reference/edit of the issue, not the date when it was closed, so I can't even use that value reliably.So, in the end, what I'm asking is:
githubenddate
orgithubclosedon
(or else) UDA, set to none if is still opengithubstate
UDA (I won't need it if I already have thegithubclosedon
date)What do you think 🙂 ?
The text was updated successfully, but these errors were encountered: