Jira (PDK) plugin use cases

1 minute readExtensibilityDeveloper productivity

The following examples illustrate how you can use the Jira plugin in CloudBees CD/RO.

Update issues based on source control logs

  1. Create a plugin procedure.

    Procedure
    Figure 1. Procedure
    1. Check out code from Git.

    2. Run the LinkIssue procedure.

      LinkIssue form
      Figure 2. LinkIssue form

      The LinkIssue procedure reads the property /myJob/ecscm_changeLogs which the previous step sets, and writes its results into the /myJob/issueLinks property sheet.

    3. Run the UpdateIssue procedure.

      UpdateIssue form
      Figure 3. UpdateIssue form

      The UpdateIssue procedure reads issue keys from the property /myJob/issueLinks/issueKeys which the previous step sets, and uses these keys as part of a Jira Query Language (JQL) query.

  2. Run the plugin procedure.

    Job
    Figure 4. Job
  3. Verify logs.

    Log
    Figure 5. Log
  4. View the report.

    Report
    Figure 6. Report