Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2023-10-03 15:13:29 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2023-10-03 15:13:29 +0300
commitd9ec4caf8fe4a4315e8e09e48d3ec79fd0a724c5 (patch)
tree9bff42fdcadcee465c800a3458322fa0fa815135 /doc/integration/jira/troubleshooting.md
parent49bd8609775923402610f4c7f7c1f8aa1efdfe7e (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'doc/integration/jira/troubleshooting.md')
-rw-r--r--doc/integration/jira/troubleshooting.md34
1 files changed, 34 insertions, 0 deletions
diff --git a/doc/integration/jira/troubleshooting.md b/doc/integration/jira/troubleshooting.md
index 31af5ca0ebe..066790c5d81 100644
--- a/doc/integration/jira/troubleshooting.md
+++ b/doc/integration/jira/troubleshooting.md
@@ -181,6 +181,40 @@ The Jira issue list does not load if the project key contains a reserved JQL wor
For more information, see [issue 426176](https://gitlab.com/gitlab-org/gitlab/-/issues/426176).
Your Jira project key must not have [restricted words and characters](https://confluence.atlassian.com/jirasoftwareserver/advanced-searching-939938733.html#Advancedsearching-restrictionsRestrictedwordsandcharacters).
+## Jira credentials not allowed to access the data
+
+When you try to view the Jira issue list in GitLab, you might see this message:
+
+```plaintext
+The credentials for accessing Jira are not allowed to access the data. Check your Jira integration credentials and try again.
+```
+
+This error occurs when the Jira credentials cannot access the Jira project key
+you specified in the [Jira issue integration](configure.md#configure-the-integration).
+To resolve this issue, ensure the Jira user you configured in the Jira issue integration
+has permission to view issues associated with the specified Jira project key.
+
+To verify the Jira user has this permission, do one of the following:
+
+- In your browser, sign into Jira with the user you configured in the Jira issue integration. Because the Jira API supports
+ [cookie-based authentication](https://developer.atlassian.com/server/jira/platform/security-overview/#cookie-based-authentication),
+ you can see if any issues are returned in the browser:
+
+ ```plaintext
+ https://<ATLASSIAN_SUBDOMAIN>.atlassian.net/rest/api/2/search?jql=project=<JIRA PROJECT KEY>
+ ```
+
+- Use `curl` for HTTP basic authentication to access the API and see if any issues are returned:
+
+ ```shell
+ curl --verbose --user "$USER:$API_TOKEN" "https://$ATLASSIAN_SUBDOMAIN.atlassian.net/rest/api/2/search?jql=project=$JIRA_PROJECT_KEY" | jq
+ ```
+
+Both methods should return a JSON response:
+
+- `total` gives a count of the issues that match the Jira project key.
+- `issues` contains an array of the issues that match the Jira project key.
+
## GitLab cannot link to a Jira issue
When you mention a Jira issue ID in GitLab, the issue link might be missing.