Velocity report to show comment from a review

[Deleted User]
[Deleted User] Member Posts: 4
Hello !
From the community, is it possible to have a little example of a code in velocity that prints all comments done in a review ? I am on a server hosted 8.62 JAMA.
It has to be a velocity report (I already know BIRT stats comments report).
It must be not context sensitive.

I show the following code, that must not be so far... but no success for the moment

#set( $iComments = $commentDao.getRevisionItemCommentCount($ri.id, false))
#set( $SamListOfDocuments = $documentSource.getActiveDocumentIdsInProject($foundProject.id))

#set($commentCounter = 0)
#if ($iComments != 0)
#foreach($localDocument in $SamListOfDocuments)

##$commentDao.getComments($localDocument)

#foreach($localComment in $commentDao.getComments($localDocument))

##set($commentCounter = $commentCounter+1)

##if(#$localComment.getCommentText() != "")

##Comment $commentCounter: $localComment.getCommentText()

##end

##end

##end

##end

Thank you :-)

Comments

  • [Deleted User]
    [Deleted User] Posts: 152
    edited August 2022
    Hi Samuel, 

    Have you tried the Review Center Comments report as of yet? That may be a better fit for your needs, and can be found HERE.
  • [Deleted User]
    [Deleted User] Member Posts: 4
    edited August 2022
    Hello Carly.
    Thanx for the answer. Indeed, the feature we want is in the report you mention; nevertheless it is a BIRT report. We already use it, officially.
    In fact, we try to have everything in only 1 report now, that's why I try to have this feature in velocity report.
    Can you ask your support team, just an example code of velocity report ? We could put it in the GIT repository, useful for everyone.

    Thank you.
  • [Deleted User]
    [Deleted User] Posts: 152
    edited August 2022
    Got it! For anything beyond the standard community report templates in GitHub, a custom report would needed -- if that's an option you'd like to explore, you can submit a ticket with our Support team to start that process HERE.
  • Alessandro Valli
    Alessandro Valli Member, Data Exchange, Jama Connect Interchange™ (JCI) Posts: 787
    edited September 2022
    Hi Samuel,
    I was doing something similar in the past and finally moved to an own made BIRT report, as not all information about review comments can be retrieved via VTL.
    Anyway, some review comments data can be retrieved via commentSource. Make sure to filter for scope=11 (revisionitem).
    I hope it helps.
    Best,
    Alessandro
    Systems Engineer
    SICK AG