I am new to Atlassian product(JIRA).So far I have tried multiple jira "CLOUD" api through python.And it works perfectly. Now I want to try the same API in jira "SERVER".My doubt is?1.Can I use the same code(jira cloud api) in server or it is going be completely different.If it is different please guide me regarding that.2.Only the auth process is different for both cloud & server.
#I am attaching my jira cloud api code(python) using HTTP Auth.
import requestsimport jsonfrom requests.auth import HTTPBasicAuthauth = HTTPBasicAuth("username", "Api_Token")def View(): key=input("issuekey/issueid") url = "https://domain.atlassian.net/rest/api/3/issue/"+key headers = {"Accept": "application/json" } response = requests.request("GET", url, headers=headers, auth=auth )#This is working perfectly in case of viewing the details of an issue(Jira cloud api).
How do I modify the same code to work in jira server api?