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="{"issueTable":{"columnSortJql":{"summary":"project = j1013 AND type = ecn AND status != closed ORDER BY summary ASC","issuetype":"project = j1013 AND type = ecn AND status != closed ORDER BY issuetype DESC","issuekey":"project = j1013 AND type = ecn AND status != closed ORDER BY key ASC","customfield_13370":"project = j1013 AND type = ecn AND status != closed ORDER BY cf[13370] ASC","created":"project = j1013 AND type = ecn AND status != closed ORDER BY created DESC","customfield_13670":"project = j1013 AND type = ecn AND status != closed ORDER BY cf[13670] ASC","customfield_10040":"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?
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.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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:
Everyone uses this same code so it does not differ by user.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.