in tools/notifications.py [0:0]
def setdata(header, number, title, user, labels, assignees, url):
rawdata = {
"cards": [
{
"header": {
"title": header + " Tracker",
"subtitle": header + " No: #"+number
},
"sections": [
{
"widgets": [
{
"keyValue": {
"topLabel": "Creator",
"content": user
},
},
{
"keyValue": {
"topLabel": "Title",
"content": title
}
},
{
"keyValue": {
"topLabel": "Assigned Lables",
"content": "- " + labels
}
},
{
"keyValue": {
"topLabel": "Assignees",
"content": "- " + assignees
}
},
{
"buttons": [
{
"textButton": {
"text": "OPEN " + header,
"onClick": {
"openLink": {
"url": url
}
}
}
}
]
}
]
}
]
}
]
}
# print(type(rawdata))
rawdata = json.dumps(rawdata)
# print(type(rawdata))
return rawdata