cancel
Showing results for 
Search instead for 
Did you mean: 

BUG? Review and Approve Workflow - document link

knixon
Champ in-the-making
Champ in-the-making
The standard review and approve assign workflow to a document generates a task to the specified assignee with a link.

Unfortunately that link takes the assignee to the site document library rather than to the specific document.

If the document library has multiple directories and multiple documents it's difficult (impossible) for the user to find the document.

Anyone else encountered this issue? Isthere a way to link the task to the document link?
8 REPLIES 8

mikeh
Star Contributor
Star Contributor

knixon
Champ in-the-making
Champ in-the-making
Hi Mike,

Thanks for the prompt response.

From looking at the code it seems that the link will now take you to the document directory.

It would be far preferable if the link took you directly to the document.

In our instance we might have a folder containing 000's of documents - it's impracticle for the user to then scan or search through the folder.

I would have thought in most (every) instance the user would have wanted to be linked directly to the document.

Thoughts?


Karl

mikeh
Star Contributor
Star Contributor
It would be an easy customisation to change the link to go direct to the details page, if that's what your users would prefer.

Thanks,
Mike

knixon
Champ in-the-making
Champ in-the-making
Thanks Mike,

I was hoping for some sample code 😉


Karl

mikeh
Star Contributor
Star Contributor
Untested, but should be ok… change that same line referred to in the JIRA ticket to:
<a href="${url.context}/page/site/${doc.location.site}/document-details?nodeRef=${doc.nodeRef}">${doc.displayName?html}</a>

Thanks,
Mike

knixon
Champ in-the-making
Champ in-the-making
Mike,

Thank's for your generous response - much appreciated.

We'll give it a test run in the next few days and confirm it works.

Karl

knixon
Champ in-the-making
Champ in-the-making
Mike,

Works perfectly!

Thanks very much will certainly help our deployment.

BTW I'd recommend this as the default code - can you put this through as a suggestion?

Karl

mikeh
Star Contributor
Star Contributor
Workflow is being completely overhauled for the next version, so the problem won't be relevant  Smiley Very Happy

Thanks,
Mike