Forums

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

Inconsistent JIRA REST API results for one user

Jeanne Singagliese June 11, 2025

I have some REST API code I have been using for years to extract issues out of JIRA. Everyone gets consisstent data except for one user. 

The "normal" user response looks like this:

<td class="project"> <a href="/browse/J1013" class="tinylink">j1013 - B-1 RCPT</a>
</td>
<td class="issuekey">

<a class="issue-link" data-issue-key="J1013-1242" href="/browse/J1013-1242">J1013-1242</a>
</td>
<td class="summary"><p>
<a class="issue-link" data-issue-key="J1013-1242" href="/browse/J1013-1242">1000C599041 - UPDATE CABLE 99W41</a>
</p>
</td>
<td class="assignee"> <span class="tinylink"><span class="jira-user-hover-wrapper"><a class="user-hover user-hover-replaced" rel="j_caldwell" id="assignee_j_caldwell" href="/secure/ViewProfile.jspa?name=j_caldwell">Jeremy Caldwell</a><button class="aui-button aui-button-text user-hover-trigger" rel="j_caldwell" aria-label="Show user information" aria-haspopup="dialog"><span class="aui-icon aui-icon-small aui-iconfont-info-filled user-hover-trigger-icon"></span></button></span></span>
</td>

 

where the "odd" user gets this:

<div class="navigator-group">
<div class="results-panel navigator-item">
<div class="navigator-content"
data-issue-table-model-state="{&quot;issueTable&quot;:{&quot;columnSortJql&quot;:{&quot;summary&quot;:&quot;project = j1013 AND type = ecn AND status != closed ORDER BY summary ASC&quot;,&quot;issuetype&quot;:&quot;project = j1013 AND type = ecn AND status != closed ORDER BY issuetype DESC&quot;,&quot;issuekey&quot;:&quot;project = j1013 AND type = ecn AND status != closed ORDER BY key ASC&quot;,&quot;customfield_13370&quot;:&quot;project = j1013 AND type = ecn AND status != closed ORDER BY cf[13370] ASC&quot;,&quot;created&quot;:&quot;project = j1013 AND type = ecn AND status != closed ORDER BY created DESC&quot;,&quot;customfield_13670&quot;:&quot;project = j1013 AND type = ecn AND status != closed ORDER BY cf[13670] ASC&quot;,&quot;customfield_10040&quot;:&quot;project = j1013 AND type = ecn AND status != closed ORDER BY cf[10040] 

 

I have no idea what is causing this difference. We have compared his user account to others and don't see an obvious difference. No matter what computer he logs into the results are the same.

Has anyone seen this before?

 

2 answers

0 votes
Jeanne Singagliese June 19, 2025

Does anyone have an answer to assist with this? 

A bit more - we are getting a 403 response on the initial POST for authorization but for most users the rest of the code doing the GET query works. The one that doesn't almost looks like it is trying to post back to a webpage or something. I see this sort of stuff in the response:

<header class="aui-dialog2-header">
<h2 id="csv-export-dialog-header-all" class="aui-dialog2-header-main">Export - CSV (All fields)</h2>
<h2 id="csv-export-dialog-header-current" class="aui-dialog2-header-main">Export - CSV (Current fields)</h2>
</header>
<div class="aui-dialog2-content">
<form class="aui">
<div class="field-group">
<label for="csv-delimiter-input">Choose a delimiter</label>
<aui-select
id="csv-delimiter"
name="delimiter">
<aui-option value="," selected="selected">Comma (,)</aui-option>
<aui-option value=";">Semicolon (;)</aui-option>
<aui-option value="|">Vertical bar (|)</aui-option>
<aui-option value="^">Caret (^)</aui-option>
</aui-select>
</div>

 

Which makes no sense to me. 

0 votes
Ramakrishna _RK_
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.
June 12, 2025

Hi @Jeanne Singagliese ,

Welcome to the Community!

Can you please share the API endpoint you are calling in both cases and also input you are supplying?

 

Regards

RK

Jeanne Singagliese June 12, 2025

I am not well versed in REST API coding. We are calling this via VBA. I think this is the API endpoint:

.Open "POST", "https://jira.mywebsite.com/rest/api/2/issue", False

As far as input, I am not sure what you mean.  I am building this string which after authentication I do a GET to retrieve data using this:

https://jira.mywebsite.com/issues/?jql=project%3Dj1013%20and%20type%20%3D%20ecn%20and%20status%20!%3D%20closed&runquery=true

Everyone uses this same code so it does not differ by user. 

 

Suggest an answer

Log in or Sign up to answer