Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Jira login with api

Ramin Memmedov March 1, 2022

hi

i have a problem

i want to integrate dynatrace with jira.

i create api token and send test request and i fail.  https://jira-support.kapitalbank.az/rest/api/2/

i seee this error on jira logs

2022-03-02 11:03:40,127+0400 http-nio-8080-exec-132 anonymous 663x13021407x7 - 10.0.6.204,10.0.4.121 /rest/api/2/issue login : 'Dynatrace' tried to login but they do not have USE permission or weren't found. Deleting remember me cookie.
2022-03-02 11:03:40,148+0400 http-nio-8080-exec-132 anonymous 663x13021407x7 - 10.0.6.204,10.0.4.121 /rest/api/2/issue The user 'Dynatrace' has FAILED authentication.  Failure count equals 9
2022-03-02 11:03:40,168+0400 http-nio-8080-exec-132 anonymous 663x13021407x7 - 10.0.6.204,10.0.4.121 /rest/api/2/issue login : 'Dynatrace' tried to login but they do not have USE permission or weren't found. Deleting remember me cookie.
2022-03-02 11:03:40,188+0400 http-nio-8080-exec-132 anonymous 663x13021407x7 - 10.0.6.204,10.0.4.121 /rest/api/2/issue The user 'Dynatrace' has FAILED authentication.  Failure count equals 10

Jira test failed

Reason: Invalid HTTP status code
HTTP Response Code: 401 - Unauthorized
HTTP Response Body:
`

Unauthorized (401)

<meta name="application-name" content="JIRA" data-name="jira" data-version="8.20.3">
<div class="aui-page-panel" ><div class="aui-page-panel-inner">
        <main role="main" id="main" class="aui-page-panel-content" >
                <div class="aui-page-header" ><div class="aui-page-header-inner">
                        <div class="aui-page-header-main" >
                                <h1>Unauthorized (401)</h1>
                            </div>
                    </div></div>
                <div class="aui-message aui-message-warning warning">
                        <p>Encountered a <code>&quot;401 - Unauthorized&quot;</code> error while loading this page.</p>
                        <p>Basic Authentication Failure - Reason : AUTHENTICATED_FAILED</p>
                        <p><a href="/secure/MyJiraHome.jspa">Go to Jira home</a></p>
                    </div>
            </main>
    </div></div>

 

1 answer

0 votes
Nic Brough -Adaptavist-
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 2, 2022

You have a user account dedicated for the Dynatrace integration and you can log in as that, but the error messages are very clear - that user does not have permission to do what it is trying to do.

You need to give the Dynatrace user permission to log in and update the issues it is trying to amend.

Ramin Memmedov March 2, 2022

thank you very much for reply. Dynatrace user is admin user. (jira-administrator group)

it is okay ?

what should i do now ? pls help

Nic Brough -Adaptavist-
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 2, 2022

You need to grant the dynatrace account the permissions to do what it is intended to do.  Admin rights are wrong, the app doesn't need admin rights (and they don't mean "can do everything"), it needs permission to log in and act in the projects you've configured.

Ramin Memmedov March 2, 2022

ok i understand you but i send request with postman dynatarce user and api token task created succeessfully.

Suggest an answer

Log in or Sign up to answer