Attaching articles to catalog task

Rahul134
Mega Expert

Hi,
I want to attach knowledge articles using Attach Knowledge formatter on the Catalog task form. This catalog task is created by a Scheduled Job.
How can I achieve this?

 

Thanks in advance.

1 ACCEPTED SOLUTION

Rahul134
Mega Expert

Hi,
I have achieved this by using a reference field which is referred from kb_knowledge and using form layout I have fetched the fields of the article and displayed them on a new section as per the customer asked.

Rahul134_0-1731651441439.png

 

 

View solution in original post

7 REPLIES 7

Mark Manders
Mega Patron

Why? What's your use case? Is it instructions for the resolving party? And do you want this manually or through automation? 


Please mark any helpful or correct solutions as such. That helps others find their solutions.
Mark

Hi Mark,

I have a scheduled job that runs monthly and creates a catalog task. So when ever the task is created the requirement was to attach a particular article as a section where the article needs to be displayed as end user view.
So how can I do it automatically. If not Attach Knowledge formatter is there any way to achieve this?

You need to check on your custom config, because OOB catalog tasks aren't supposed to be end user visible, hence no need for knowledge attachment there. But if you for some reason have the sc_task table available for end users, you could just script a relation between the article and the task (m2m_kb_task/task_rel_kb). Or do a lookup to the article and create a link to the article to put in the comments so they can be clicked on on the portal.


Please mark any helpful or correct solutions as such. That helps others find their solutions.
Mark

no Mark, The task will be available for ITIL users only but the Knowledge article has to be shown as end user view. 
or can you suggest me how can I achieve this?
the client wants to attach a particular article to  a scheduled task whenever it is created. the article has to be attached as a section on the catalog task form.