Associated SCTASKS for RITM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-11-2023 02:53 AM
Hi Everyone,
I have created a widget where it displays all the associated SCTASKS. I have added that widget in one of the page and it is working as expected.
But when I added this widget to ticket tab configuration it is showing as empty
Code of Widget:
HTML:
<div class="container">
<div class="row">
<div class="col"><strong>Task Number</strong></div>
<div class="col"><strong>Short Description</strong></div>
<div class="col"><strong>State</strong></div>
<div class="col"><strong>Assigned To</strong></div>
<!-- Add more field names here -->
</div>
<div class="row" ng-repeat="task in data.catalogTasks">
<div class="col">{{ task.number }}</div>
<div class="col">{{ task.short_description }}</div>
<div class="col">{{ task.state }}</div>
<div class="col">{{ task.assigned_to }}</div>
<!-- Add more field values here -->
</div>
</div>
CSS:
<style>
.container {
display: flex;
flex-direction: column;
border: 1px solid #ccc;
padding: 10px;
}
.row {
display: flex;
flex-direction: row;
justify-content: space-between;
border-bottom: 1px solid #ccc;
padding: 5px;
}
.col {
flex-basis: 20%;
padding: 5px;
}
.col:first-child {
flex-basis: 10%;
}
</style>
Server Script:
Can anyone please give me some suggestion that how can I show those details in Tab Configuration.
Thanks in advance,
Akhil.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-11-2023 02:56 AM
Hello @Akhil42 ,
So you are using $sp.getParameter() right ? in the URL of the ticket page does it contain the RITM sys_id in sys_id parameter ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-11-2023 03:16 AM - edited 08-11-2023 03:19 AM
Hi @Mohith Devatte ,
When I opened the RITM in the page I am able to see those associated tasks of RITM as per widget code, but not in Ticket Tab configuration (Task detail2)
Could you please suggest me what parameters needs to be passed in the ticket tab configuration.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-11-2023 03:20 AM
@Akhil42 let me try this in my PDI in some time and will get back to you
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-11-2023 03:22 AM
@Mohith Devatte Thanks for the help.