Getting the current location details
Note: Location means item, sprint, release, and meeting details.
This event returns the current location details like the hierarchy. If we invoke the function from the sprint details page, it returns the sprint details like mentioned below.
Snippet
Copiedsdk.dispatch("zs-context").then((response)=>{});
Sample response
Copiedresponse : {
extension: {
"id": "19091000000010051"
},
project : {
"id": "19091000000007713",
"name": "Sample Project",
"status": 1
},
sprint:{
"id": "19091000000007841",
"name": "User interface sprint",
"type": 3
},
team : {
"name": "zsextensions",
"zoid": "78071774",
"timeFormat": "hh:mm aaa",
"compTZ": "Asia/Calcutta",
"is12HrFormat": true,
"dateTimeFormat": "dd/MMM/yyyy hh:mm aaa",
"dateFormat": "dd/MMM/yyyy"
},
user:{
"id": "19091000000003003",
"uiPreferences": {
"isDarkMode": false,
"theme": 4,
"fontfamily": 2,
"fontsize": 3
}
}