0

I have a list storing the names of the pages from one of the tool in list named "sp_list", I am trying to pass this list as comment to JIRA Issue and would need the list of items to be printed in separate line or in bullets, but unable to find a way.

sp_list = [] 

This sp_list will be stored with page names appended and same needs to be passed as comment to Jira issue through payload.

payload = {"body": "SUCCESS - An event was added to the following Status Pages %s" % sp_list, }

Output/Comment being added in JIRA issue:

SUCCESS – An event was added to the following Status Pages [‘xgbu_Service_Desk_test’, ‘xgbu_Service_Desk_test1’, ‘xgbu_Service_Desk_test2’]

enter image description here

The expectation of comment in JIRA Issue I am looking for is:

SUCCESS – An event was added to the following Status Pages: xgbu_Service_Desk_test xgbu_Service_Desk_test1 xgbu_Service_Desk_test2

Anonymous Asked question May 13, 2021