All Apps and Add-ons

Splunk Add-on Bamboo: how to change bamboo.py to get additional data

timoMD
Explorer

the normal request against the bamboo server is parsed in the bamboo.py
(line 43 :
def _get_url(endpoint):
43 return endpoint+'.json' + "?plan&jiraIssues.issue&max-results="+str(SYNC_EVENTS_PER_PAGE)
)

--- > https://bamboo-server:443/rest/api/latest/result/xxxx.json?max-results=1000

How to change the line to create the following request:

---> https://bamboo-server/rest/api/latest/result/xxxx.json?expand=plan&expand=jiraIssues.issue&max-resul...

0 Karma

timoMD
Explorer

sorry the is the right bamboo.py line 42, 43:

def _get_url(endpoint):
return endpoint+'.json' + "?max-results="+str(SYNC_EVENTS_PER_PAGE)

0 Karma