Need assistance using websudo for an api call to get snapshots

Issue #32 resolved
Former user created an issue

I need assistance using websudo for an api call to get snapshots from the api.

I have the following python packages installed: atlassian-python-api 3.12.1 jira 2.0.0

From atlassian/jira I am using the function called user_get_websudo() After doing this the final post command just returns None and I see the same 2 session cookies. So first I don't have a way to verify when I made this call if it actually go the websudo or not.

Then if that worked I should be able to do a GET command like this: jira.mysite.com/rest/confiugration-manager/api/1.4/snapshots/57

But when I run the get command I get a 401 error even though I have the same cookies set that were set when I called user_get_websudo. Do you have some instructions on how to use the user_get_websudo function? And how to verify it worked since it just returns None?

Also the end goal is to start snapshots with a POST. But for now I am trying the GET just to verify the websudo is working.

Official response

Comments (7)

  1. Roma Bubyakin [Wombats Corp]

    Hello,

    If it’s possible, I would like to propose a screen share session as the most efficient way to assist.

    Please send an invitation link to info@wombatscorp.com with any suitable time and communication tool.

    In case if screen share session is not possible, I would like to ask for the version of your Jira installation (server/DC) and script example for reproducing purposes.

    Best Regards, Roman

  2. Mark Matchynski

    We cannot do a screen share. We have an on-premise DC version of JIRA. Version 8.15.0. Is there any documentation showing an example of using user_get_websudo then calling a function? Also how to read the output to verify the web sudo worked?

  3. Roma Bubyakin [Wombats Corp]

    Ok, Mark

    I have tested on my own and found an issue with WebSudo.

    By tomorrow there will be a new version released on the marketplace with a fix.

    I would appreciate it if you update me if that helps.

    Regards, Roman

  4. Roma Bubyakin [Wombats Corp]

    Hi Mark,

    Thank you for informing me back.

    I’m happy that it works now 🙂

    Regards, Roman

  5. Log in to comment