preslavmihaylov / todocheck

A static code analyser for annotated TODO comments
MIT License
426 stars 42 forks source link

add support for JIRA servers prior to v9 #198

Closed preslavmihaylov closed 2 years ago

preslavmihaylov commented 2 years ago

closes #196

JIRA servers prior to v9 use a Bearer authorization mechanism. Later versions use a different mechanism, which todocheck already supports.

I've added some init logic when initializing a JIRA issue tracker to try to automatically detect the server's version. If any issue occurs, it defaults to the latest one supported - v9.

preslavmihaylov commented 2 years ago

@Jasper-Ben lemme know if this version integrates correctly \w your self-hosted JIRA

Jasper-Ben commented 2 years ago

Looking good :+1:

todocheck was able to connect to jira and see that the linked task was closed.

ERROR: Issue is closed
test-todocheck.sh:1: # TODO RDPHOEN-1177: Test todocheck