Document Link on Project Report | Community
Skip to main content
November 27, 2024
Solved

Document Link on Project Report

  • November 27, 2024
  • 2 replies
  • 1381 views

I'm trying to create a column that will display the link to a brief document on a project.  I tried the below text...and think I hallucinated it working yesterday...but it is not displaying as I expected.  Any ideas?

 

displayname=Link to Brief
listdelimiter=<p>
listmethod=nested(project).nested(documents).lists
textmode=true
type=iterate
valueexpression=IF(CONTAINS('brief',{name}),CONCAT("http://domain.my.workfront.com/","document/",{ID}, "/details"))
valueformat=HTML

Best answer by ChristianSi6

This is what finally worked.

 

displayname=Link to Brief
listdelimiter=<br>
listmethod=nested(documents).lists
textmode=true
type=iterate
valueexpression=IF(CONTAINS('brief',{name}),CONCAT("http://domain.my.workfront.com/","document/",{ID},"/details"))
valueformat=HTML

2 replies

skyehansen
Community Advisor
Community Advisor
November 27, 2024

how were you expecting it to display? And what is it doing instead?

Rafal_Bainie
Community Advisor
Community Advisor
November 28, 2024

couple things:

1. in your code there is a mistake with duplicated part in line 3 which I think should read:

listmethod=nested(documents).lists

 2. I thought it's IF that is causing issues because you are using it almost as filter, but I confirmed it's not IF by removing it

3. Following code works just fine on project page, task view:

displayname=List listdelimiter=<p> listmethod=nested(documents).lists type=iterate valueexpression={ID} valueformat=HTML

4. exactly the same code doesn't work on portfolio page, project view.

5. However, slightly modified code works just fine:

displayname=List listdelimiter=<p> listmethod=nested(tasks).lists type=iterate valueexpression={ID} valueformat=HTML

Therefore I think it's either by design that documents collection won't work on portfolio level OR it's a bug. To verify that I would reach out to support

skyehansen
Community Advisor
Community Advisor
December 2, 2024

Rafal, your initial code (3) works on a portfolio page right now. Maybe it was a brief outage?

Sven-iX
Community Advisor
Community Advisor
December 2, 2024

@skyehansen it works if you have documents at the program. 

Any project documents (as OP described) will not get listed.

 

The OP is on a page that lists projects (eg projects view in program detail) and wants to iterate over each of the listed projects' documents. I'm not aware of a method to do a double-iterate