Repository: fundakol/pytest-jira-xray (language: python)

Issue:
Bad Request on execution import
I just get the following error:

```
Could not publish results to Jira XRAY!
HTTPError: Could not post to JIRA service at https://example.com/jira/rest/raven/2.0/import/execution. Response status code: 400
```
when running the execution. The Base URL is fine, because I use it with official Jira python library. The code 400 means: Bad Request, how can I debug that?


Discussion / hints:
It could be test ID which does not exist in database, or user has no access to that test. 

This is error message which I have when I try to import results from web page:
```
Error importing execution results to database:

Test issue with key LES-99 not found.
```
From command line it is 400 with error: Error assembling issue data: project is required
I'm debugging, an the original message is missing, which is.

```
b'{"error":"The Test XXX is in a non-executable status"}'
```

Edit: Detailed error message has been added by 555b3cba50748bfdf1b33bd46611ff7f038723b7

Edit: Looks like the user required "Resolve" permission: https://community.atlassian.com/t5/Jira-questions/Test-Executions-are-Read-Only-Why/qaq-p/1155044

Fix patch:
diff --git a/README.md b/README.md
index 171b4d1..d9dc290 100644
--- a/README.md
+++ b/README.md
@@ -87,3 +87,20 @@ $ pytest --jira-xray --cloud
 ```commandline
 $ pytest --jira-xray --xraypath=xray.json
 ```
+
+### IntelliJ integration
+
+When you want to synchronize your test results via. Pytest integration in IntelliJ, you need to configure the following:
+
+1. Use the *pytest* test configuration template and add `--jira-xray` to *Additional Arguments*
+  ![](doc/intellij-pytest-template.png)
+2. Disable `--no-summary` in *Settings*
+  ![](doc/intellij-pytest-advanced-settings.png)
+
+### Troubleshooting
+
+This section holds information about common issues.
+
+#### `The Test XXX is in a non-executable status`
+  * Problem: The test is not executable by the user.
+  * Solution: Make sure, that your test is not deactivated, approved and ready to use in Jira.


Test patch:
diff --git a/doc/intellij-pytest-advanced-settings.png b/doc/intellij-pytest-advanced-settings.png
new file mode 100644
index 0000000..f16b6d3
Binary files /dev/null and b/doc/intellij-pytest-advanced-settings.png differ
diff --git a/doc/intellij-pytest-template.png b/doc/intellij-pytest-template.png
new file mode 100644
index 0000000..9661dbb
Binary files /dev/null and b/doc/intellij-pytest-template.png differ