Support

 View Only
  • 1.  Velocity report to show comment from a review

    Posted 08-22-2022 05:22
    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 :-)

    ------------------------------
    Samuel LE COZE ULSHYNA
    Mercury Missions System Intl
    Geneva
    ------------------------------


  • 2.  RE: Velocity report to show comment from a review

    Posted 08-24-2022 16:30
    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.

    ------------------------------
    Carly Rossi // she/her
    Community Manager // Jama Software
    Portland, OR
    ------------------------------



  • 3.  RE: Velocity report to show comment from a review

    Posted 08-24-2022 23:55
    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.

    ------------------------------
    Samuel LE COZE ULSHYNA
    Mercury Missions System Intl
    Geneva
    ------------------------------



  • 4.  RE: Velocity report to show comment from a review

    Posted 08-26-2022 13:46
    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.

    ------------------------------
    Carly Rossi // she/her
    Community Manager // Jama Software
    Portland, OR
    ------------------------------



  • 5.  RE: Velocity report to show comment from a review

    Posted 09-05-2022 02:35
    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
    ------------------------------