GothenburgBitFactory / bugwarrior

Pull github, bitbucket, and trac issues into taskwarrior
http://pypi.python.org/pypi/bugwarrior
GNU General Public License v3.0
736 stars 209 forks source link

Bugwarrior recreates task if task is completed #769

Closed StephanMeijer closed 3 years ago

StephanMeijer commented 3 years ago

On reassignment, JIRA creates a completely new task instead of reusing the old one.

StephanMeijer commented 3 years ago

Other tasks do this as well: As soon as a task/issue is completed and then being put in progress again, it won't be set on pending anymore. A new (duplicate) task will be added instead. This is a bugwarrior-wide issue.

StephanMeijer commented 3 years ago

I suspect find_taskwarrior_uuid can only find tasks with status: pending.

StephanMeijer commented 3 years ago

This suspicion might be correct:

            results = tw.filter_tasks({
                'and': [("%s.is" % key, issue[key]) for key in key_list],
                'or': [
                    ('status', 'pending'),
                    ('status', 'waiting'),
                ],
            })
ryneeverett commented 3 years ago

Resolved via #779.

StephanMeijer commented 3 years ago

Thanks for picking this up @ryneeverett