-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issues not transitioned to status when using Jira Server #389
Comments
Hi @aufdenpunkt, interesting, I've never actually used the
This would work, yes. Maybe something like: await configureXrayPlugin(fixedOn, config, {
jira: {
projectKey: 'TTEST',
url: 'server url',
onResultUpload: ({issue, jiraClient, xrayClient }) => {
// call transition issue endpoint yourself here
jiraClient.transitionIssue(issue.key, "done");
}
},
}); I could optionally make the clients my plugin uses available there, too. Some of the endpoints there could maybe be reused. Alternatively, I can also implement a Let me know what you think. |
Hi @csvtuda, thanks for your quick response. So, basically, having hooks would enable a certain flexibility. But, as this is more an edge case in my opinion, I would prefer the transition detecktion. |
A quick update: I have not been able to work on this yet. I'll probably implement it this weekend, there's a lot of other stuff going on at the moment. |
Don't worry and thanks for the update. Let me know if I can support you in any way or can contribute. |
Hi @aufdenpunkt, I have released version 7.4.0, which now explicitly performs the transition iff:
The code from your example should hopefully work now. Let me know if it does! |
Hi @csvtuda, Sorry for my late response, and thanks for the release! I will have a look in the upcoming days. |
Hi @csvtuda, It is working now, thank you very much. 🙂 During my testing, I stepped into a minor bug. Setting the transition ID as a property inside the transition object, like in my example configuration above, leads to a
|
Oops, sorry! Fixed in 7.4.1. Unfortunately, I cannot write a proper integration test for this feature because:
Thanks for trying it out and reporting this oversight. |
That was quick, thanks! 🙏 Then, from my side, it's all fine now. |
Description
Hi,
This is actually not a bug in your really nice plugin. We noticed that it is not possible to set the status/transition via the Jira Server REST API, when the issue POST endpoint is used.
Unfortunately, when it comes to transitions, the Jira Server and Jira Cloud REST APIs work slightly differently. See https://jira.atlassian.com/browse/JRASERVER-66881
Is it possible to implement some kind of "hooks" that can be used to make another request to the API per issue, e.g. to call an additional endpoint to set the status?
Thanks and best,
Chris
Cypress version
13.14.2
Plugin version
7.3.0
Jira/Xray type
Server
Configuration
No response
Acknowledgements
The text was updated successfully, but these errors were encountered: