Using Actions in a configurable grid, one can create notes in an issue using Actions. This means that users can add notes to an issue linked to an Item directly from a grid instead of navigating to the issue's project to add the note. This article provides an example configuration of how to use DialogCreateNote for issue note creation.

Prerequisites

  • An installation of SystemWeaver version R42 or later


Example Configuration 

<Grid>
  <Options>
    <CellAutoHeight/>
  </Options>
  <Variable name="currentItem" as="Item" select="."/>
  <ActionBindings>
    <ActionBinding actionId="addIssueNote" caption="Add note to issue using DialogCreateNote">
      <WithParam name="note">
        <DialogCreateNote/>
      </WithParam>
      <WithParam name="issue" objectName="issue"/>
    </ActionBinding>
  </ActionBindings>
  <Actions>
    <Action id="addIssueNote">
      <Parameter name="note" as="Description"/>
      <Parameter name="issue" as="Issue"/>
      <Issue id="A" match="$issue">
        <Note sid="NISS" description="$note"/>
      </Issue>
    </Action>
  </Actions>
  <Columns>
    <NameColumn id="issueNote" caption="Issue Name" width="200" objectName="issue" cellMerge="true"/>
    <TextColumn caption="Note activity" width="160" objectName="issueNote">#{? .}</TextColumn>
    <TextColumn caption="Note timestamp" width="160" objectName="issueNote">#{? LastChanged.Format('')} </TextColumn>
    <DescriptionColumn id="issueNote" width="auto" caption="Note" objectName="issueNote" cellMerge="true" readOnly="true"/>
  </Columns>
  <RowObject name="item">
    <ForEachNote type="NND">
      <RowObject name="note">
        <Row>
        </Row>
      </RowObject>
    </ForEachNote>
  </RowObject>
  <ForEach select="$currentItem/issueref::IR">
    <RowObject name="issue">
      <ForEachNote type="NISS">
        <Row>
          <RowObject name="issueNote"/>
        </Row>
      </ForEachNote>
    </RowObject>
  </ForEach>
</Grid>

Example Result 

A right-click menu provides the configured option.


The New Note dialog displays where users can enter the content of the note.

Note: If you do not include confirmationDialog="false" in the ActionBinding, the Execute dialog will display next. Users can confirm OK to complete the operation.


Below one can see the newly created note both in a configured columns in the grid, and also in the issue itself under Projects.