Uploaded image for project: 'Workspaces'
  1. Workspaces
  2. WORKSPACES-1118

Sax the project idof the main category of the project into the simples services

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Major Major
    • 2.1.3, 2.2.0
    • None
    • None
    • None
    • 4.5 M4

      Like it is already done in the project-catalogue service, we need the color of the main category of the project.

       

      Please, add it to this simples services : 

      • filtered-events (workspaces\pages\services\simple\filtered-events\filtered-events.xsl)
      • document-stream (workspaces\pages\services\simple\document\document-stream.xsl)
      • tasks (workspaces\pages\services\simple\taskslist\taskslist.xsl)
      • activity-stream (workspaces\pages\services\simple\activity-stream\activity-stream.xsl)

          [WORKSPACES-1118] Sax the project idof the main category of the project into the simples services

          Laure Lopez made changes -
          Status Original: Resolved [ 5 ] New: Closed [ 6 ]
          Laurence Aumeunier made changes -
          Resolution New: Fixed [ 1 ]
          Status Original: In Progress [ 3 ] New: Resolved [ 5 ]
          Laurence Aumeunier made changes -
          Fix Version/s New: 2.1.3 [ 16495 ]

          Laurence Aumeunier added a comment - - edited

          For tasks, documents and calendar events, the project category is now saxed as following

          <projectCategory id="project-category://80213f44-7dc8-4d1a-b7b3-502331881a9e" name="NAME" color="#6699FF">Label</projectCategory>
          

          The activity stream we cannot add the project category. Use the ProjectXSLTHelper instead.

          Laurence Aumeunier added a comment - - edited For tasks, documents and calendar events, the project category is now saxed as following <projectCategory id= "project-category://80213f44-7dc8-4d1a-b7b3-502331881a9e" name= "NAME" color= "#6699FF" > Label </projectCategory> The activity stream we cannot add the project category. Use the ProjectXSLTHelper instead.
          Laurence Aumeunier made changes -
          Assignee New: Laurence Aumeunier [ laurence ]
          Laurence Aumeunier made changes -
          Status Original: Open [ 1 ] New: In Progress [ 3 ]

          Laurence Aumeunier added a comment - - edited

          Yes the ProjectXSLTHelper is your man. There is a lot of helper for project, you could easily retrieve the category color.

          Exemples d'utilisation

          <xsl:variable name="color" select="project:projectCategoryColor(projectName)"/>
                  <a href="{projectUrl}" class="mb-0" style="color: {$color/main}">
                      <i class="fas fa-dice-d6"></i>
                      <xsl:value-of select="projectTitle"/>
                  </a>
          

          Laurence Aumeunier added a comment - - edited Yes the ProjectXSLTHelper is your man. There is a lot of helper for project, you could easily retrieve the category color. Exemples d'utilisation < xsl:variable name= "color" select= "project:projectCategoryColor(projectName)" /> <a href= "{projectUrl}" class= "mb-0" style= "color: {$color/main}" > <i class= "fas fa-dice-d6" > </i> < xsl:value-of select= "projectTitle" /> </a>
          Laurence Aumeunier made changes -
          Attachment New: image-2021-08-31-14-45-13-597.png [ 24240 ]
          Cédric Damioli made changes -
          Fix Version/s New: 2.2.0 [ 16095 ]
          Fix Version/s Original: 2.LATER [ 14881 ]
          Sprint New: 4.5 M4 [ 63 ]
          David Cartier-Michaud made changes -
          Project urgency New: 2 [ 10411 ]
          Projet Original: AGGLOCAEN-61 New: AGGLOCAEN-61 CCPM

            laurence Laurence Aumeunier
            llopez Laure Lopez
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: