-
Notifications
You must be signed in to change notification settings - Fork 18
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
Close execution issue after upload #89
Comments
This plugin does not do this, it even does not know about any issues associated with a test in Jira. It just send blindly to Xray what it found in results. |
@fundakol Thank you once again for the quick reply. Having investigated a bit more it seems that unfortunately this is not easily achieved/possible with Cloud Jira + XRAY as the XRAY fields are not available in Smart values JSON at all (only for Server). That being said, I understand that this is outside the scope of this project so I will find alternative options. Maybe I can do it directly with the hook that you suggested:
In any case, thank you for the help :) Feel free to close this issue, (I'll keep it open unless you still want to add something to the discussion). |
If you don't want to create a new execution issue you can create one and provide it's id in CLI, so results will be updated for this issue.
|
No that's fine. I will be creating a ton of them automatically based on CI pipelines so I need them to create new ones every time. I managed to do it with the snippet that I provided above. However I get around this by checking
However maybe you know of a better way. I thought about doing the transition in |
You can write execution id in to a file (in pytest_sessionfinish) and have another Python's script which can be executed after pytest. This script can look for the file and if exists read issue id from it and send request to xray to close the issue. |
Hello again @fundakol ,
I was wondering if it's possible to close an execution issue after the results have been uploaded, either by default or with a flag.
I'm not sure if this is something that this plugin supports or aims to do so, or if one should do it manually/directly with Jira. I guess in that sense one would need to use also what is in #8 .
Apologies for the issues but hopefully these help other people in the future as well.
Thank you once again 😄 !
Edit: In case it's not clear I'm talking about the Jira Execution status, not the
PASS
,FAILED
etc, i.e. in my case a new execution issue is created but it is left in stateNew
. I would like to have it moved toDone
immediately as these are generated automatically, so in my case nobody would close them.I can maybe get around to this by having an Automation within Jira itself, but ideally this wouldn't be needed and it seems like this would be a nice addition to this project.
Edit 2:
Having checked https://docs.getxray.app/display/XRAYCLOUD/Using+Xray+JSON+format+to+import+execution+results it seems that this is not supported on XRAY's side. I'll still wait to hear from you either way 😅
The text was updated successfully, but these errors were encountered: