# Jira integration Error 401 - Unauthorized

**URL:** <https://community.dynatrace.com/t/jira-integration-error-401-unauthorized/40364>\
**Category:** Automations\
**Tags:** integrations, jira\
**Created:** [June 23, 2023, 9:00pm UTC](https://community.dynatrace.com/t/jira-integration-error-401-unauthorized/40364 "2023-06-23T21:00:06Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![MariettaAlmeida](https://avatars.discourse-cdn.com/v4/letter/m/9fc348/32.png) [@MariettaAlmeida](https://community.dynatrace.com/u/MariettaAlmeida)\
**Post date:** [June 23, 2023, 9:00pm UTC](https://community.dynatrace.com/t/jira-integration-error-401-unauthorized/40364/1 "2023-06-23T21:00:06Z")

</div>

Hi all,

I’m integrating Jira to send problem notifications from Dynatrace and I’m facing the following error:

### "Jira test failed

**Reason:** &nbsp;Invalid HTTP status code  
**HTTP Response Code:** &nbsp;401 - Unauthorized  
**HTTP Response Body:**  
{“errorMessages”:[“You do not have permission to create issues in this project.”],“errors”:{},“reasons”:[]}"

Im using Jira Cloud and the step I followed to link both accounts are:

- using the Jira URL:&nbsp;&nbsp;https:// [FFFFFFFFFFFFFFFFF.atlassian.net](http://FFFFFFFFFFFFFFFFF.atlassian.net)
- created an API token with required scopes and used it along with the environment ID on this plugin (scope Access problem and event feed, metrics, and topology (API v1), Read synthetic monitors, locations, and nodes&nbsp;(API v1), Read entities (API v2))&nbsp;  
 ![MariettaAlmeida_1-1687553641670.png](https://global.discourse-cdn.com/dynatrace/original/3X/6/f/6fbbf71436995b52eede6cc305a77ab07ca088b1.png)
- created an Atlassian API token and used it on dynatrace  
 ![MariettaAlmeida_2-1687553896228.png](https://global.discourse-cdn.com/dynatrace/original/3X/b/e/be2bf112219918a0efd053f8d2d72884bd925a31.png)
- used my admin user to connect
- used the issue type:&nbsp;  
 ![MariettaAlmeida_3-1687553940064.png](https://global.discourse-cdn.com/dynatrace/original/2X/8/85bfa85bebef215199c4bf71b7fdd728377b2b53.png)

I’m using a trial account, how can I fix the error?

---

<div class="post-metadata">

**Author:** ![ChadTurner](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/chadturner/32/161_2.png) [@ChadTurner](https://community.dynatrace.com/u/ChadTurner)\
**Post date:** [August 7, 2023, 5:27pm UTC](https://community.dynatrace.com/t/jira-integration-error-401-unauthorized/40364/2 "2023-08-07T17:27:16Z")

</div>

It sounds like an issue on the JIRA side with the permissions. Double check the account permissions for Dynatrace on the Jira side and see if you are still getting this error. Look for permissions to write/create issues an a project scope.

---

<div class="post-metadata">

**Author:** ![Slawa](https://avatars.discourse-cdn.com/v4/letter/s/ee7513/32.png) [@Slawa](https://community.dynatrace.com/u/Slawa)\
**Post date:** [August 7, 2023, 6:39pm UTC](https://community.dynatrace.com/t/jira-integration-error-401-unauthorized/40364/3 "2023-08-07T18:39:44Z")

</div>

I suggest checking with a postman first from a public network,  
if your Jira is just inside the secure perimeter like my, you would:

- ask the network team to white-list Dynatrace IPs  
- optionally provide external Jira DNS if needed.
