Viewing 'approvers' on the Task

germc
Giga Expert

Hi guys,

We have approvals for our 'Requests' and 'Request Items' on the catalogue.

What is the best way to vew these quickly? So for example, an analyst is in a Task and needs to see very quickly who approved the overall Request and then the Request Item.

Is it best to use Relationships and have a tab on the Task or is there a better way?

If I use the flyouts on the Task to see the Request or Request Item info it doesnt show the tabs on there for the approvers. However, it does show on the actual Request.

Is there an easy way of adding it in here?

task.PNGtask2.PNG

1 ACCEPTED SOLUTION

OKay, maybe we should go back to basics and simply try showing the Request approvers on their own. Give this a shot:



var enc = "document_id=" + parent.request;


current.addEncodedQuery(enc);



If that doesn't work, have a go at this:



var enc = "document_id=" + parent.request_item.request;


current.addEncodedQuery(enc);



If still nothing, can you upload a screenshot of a Request approval record please?


View solution in original post

19 REPLIES 19

solutioningnow
Giga Guru

Hi,



The best way is to setup Relationship on Task table which will display all the approvals related the Request as well as to Request Item.



Please mark answer as correct/helpful, if it was really helpful



Regards,


Solutioner


Logo.png


Enhance Knowledge NOW@ www.solutioningnow.com


http://www.solutioningnow.com/


domaners
Kilo Guru

Navigate to the Relationships module and set it up as noted in the attached screenshot. Then, open a Catalog Task and add it to the form, either as a Related List or an Embedded List.



sc_task Approval Relationship.PNG


Hi Adam,
This works great. Is there a way to show the approver for the main Request too? (not just the Request Item).


The reason for this is we have approval set up on the Request itself and we wouold need to see the approver on the associated Tasks.


Hi Ger,



I tried to set it up to show the approvers for both the request and request item, but seem to be struggling with the OR condition. Remove the script in the relationship and replace it with this:



var enc = "document_id=" + parent.request_item + "^ORsysapproval=" + parent.request;


current.addEncodedQuery(enc);



I've tested this and it does work, let me know what you think.