Creating a SysML Block from a JIRA Issue

  1. In some applications, it may be useful to have a SysML element in the MagicDraw model as a direct proxy for a JIRA issue and displaying many of the same attributes. If this SysML element is connected to the JIRA issues through a Syndeia Data Map connection, the default values of these attributes may be compared and updated as the system evolves.
  2. We begin with the JIRA Tutorial Model as it was at the completion of the last exercise.


     
  3. In the Syndeia dashboard, Connection Manager tab, select Data Map under Connection Type in the central pane. Drag one of the JIRA issues from the right pane onto the JIRA Tutorial package in the left pane (the SysML model). We use SDB-19 in this example. Click Yes to confirm. A new block appears in the left pane under the JIRA Tutorial package named SDB-19. Go to the Connection Summary tab and click Refresh. A new connection of type BLOCK_JIRA_ISSUE_DATAMAP_CONNECTION appears.



     
  4. Return to MagicDraw. Create a new block definition diagram under the JIRA Tutorial package and drag the new block (e.g. SDB-19) into the diagram (see Figure 184). Note that an applied stereotype of <<JIRA_Issue>> is displayed along with <<block>>. The default values of the value properties are determined by the contents of the corresponding JIRA properties.
  5. Change one of the default values in the SysML block. In our example, we changed the status to Open.
  6. In the Syndeia dashboard, Connection Browser tab, right-click the SDB-19 row and select Compare SysML & Target. A difference table will be displayed automatically in the Comparison Result tab (Figure 185) showing the discrepancy between the SysML block and JIRA issue.
  7. In the Syndeia dashboard, Connection Browser tab, right-click the SDB-19 row and select Sync Target → SysML. The default value of the status property of the SysML block will be reset to its value in JIRA, Resolved

Note: In most cases, updating in the opposite direction is not possible. JIRA does not allow these values to be set through the API, only through the regular JIRA interface.