Adapt Jira Integration to new search endpoints#4514
Adapt Jira Integration to new search endpoints#4514holger-waschke wants to merge 3 commits intoprometheus:mainfrom
Conversation
81b7bb9 to
0f1955a
Compare
|
From what JIRA version this endpoints available? I'm interested because it might break compat Alertmanager with non super-recent JIRA versions |
jkroepke
left a comment
There was a problem hiding this comment.
The new endpoint seems not part of the v2 API and is not available for Jira On Premise.
We want to preserve Jira On Premise compatibility, so I guess this is not enough.
No, it´s part of v2 too, see here. API v2 and v3 are technically identical, the only difference is the support of the ADF format, see source here.
Well, as the documentation says
Source here This doesn´t sound for me that it´s top priority to keep the combability. Imho it shouldn´t be priority as on-premise Jira Server is EOL anyway, see here. |
OK. Cloud API v2 and v3 are technically identical (expect for issue body, where v3 requires ADF). But I can't find the Rest Endpoint in the Jira Server Rest API. https://docs.atlassian.com/software/jira/docs/api/REST/8.20.1/
Jira Data Center is not EOL. |
If you make a patch for software that will break current deployments, it is a regression. Let me give you an example: the integration of AlertManager and JIRA works in a company where version v8.8.1 is deployed. There are no plans to update the version, as well as to retire JIRA. That is, most likely, this version will work for decades without changes. In this case, it seems much more convenient to add the field to the AM integration YAML, that will indicate which version of the API should be used. Or to select the version programmatically (some capabilities endpoint)
Otherwise, we will have to roll back this patch during AM build, since the integration is already completed and the human is only solving the problem, the JIRAlert does everything else. Thanks |
Would you say v2 is Jira Data Center, v3 is Jira Cloud? Not easy. Keep in mind, the Create Issue Rest API between v2 and v3 is not equal. While V2 API supports plain text with Jira Markup, in API v3 you must use ADF to create an issue. It might be result into a mix of using API Versions. |
Yes, the endpoints are deprecated in both API versions, so this wouldn´t help. Let´s get some things sorted: While you can run software versions for decades without updating you have no assurance that 3rd party tools which are using this API will not implement breaking changes. I can only follow official API documentation from ATL and the new Endpoint is available in V2 and V3 API Version. It´s not available in the REST API Documentation you posted, but there´s a big deprecation warning there. So IMHO we should really focus on the official supported API Versions, not the deprecated ones. |
I don't see that you added deprecation notes to this PR. About new version of Alertmanager is impossible to use on-prem, or you will be tagged several times a month when users try to integrate AM with on-prem JIRA |
I agree! Jira Data Center is officially supported by Atlassian, so we have to cover it as well. https://docs.atlassian.com/software/jira/docs/api/REST/9.14.0/ - thats Jira Data center 9.14 supported until 15 February 2026. Jira 11 will be supported until 13 August 2027 as well. See https://confluence.atlassian.com/support/atlassian-support-end-of-life-policy-201851003.html @k0ste Whats your On Prem Version? I can only see Jira Software V8, but maybe your version is newer. |
|
I wrote an proposal to solve this issue: #4513 (comment) |
Version: 8.8.1 |
|
Hi, any news here ? jira cloud now blocks the old endpoint, the integration is KO conf: error: |
|
Ok there is another PR merged instead of this one |
yes, superseded by #4542 |

this resolves #4513