I have script for get the tickets from JIra i am not able to get the commits from development filed.
Hi @t-gajula ,
Try to check the solution for the other guys in this link.
https://community.atlassian.com/t5/Answers-Developer-Questions/Get-commits-info-of-a-JIRA-issue-using-REST-API/qaq-p/530323
import requestsfrom requests.auth import HTTPBasicAuthimport json
url = "https://xxxxx.atlassian.net/rest/dev-status/latest/issue/detail?issueId=xxxxx&applicationType=bitbucket&dataType=repository"
auth = HTTPBasicAuth("email", "api_token")
headers = {"Accept": "application/json"}
response = requests.request("GET",url,headers=headers,auth=auth)
d_myjson = json.loads(response.text)
num_repo = len(d_myjson['detail'][0]['repositories'])num_commits = len(d_myjson['detail'][0]['repositories'][0]['commits'])
It looks like you're new here. Sign in or register to get started.