Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Currently (as of August 2020), this is not possible out-of-the-box provided directly by Xray yet. However, with some minor customization, this can be already easily be achieved.

Depending on the use case, this may be quite simple or a little more complex to implement.

...

In order to implement triggering from Xray, and while it is not built-in, you'll need to either use Jira Cloud automation capabilities or use an additional Jira app/plugin for that. This app If using an external app, it must provide some sort of Jira customization, giving you the ability to add an action (e.g. button) on the UI; besides that, it shall also provide a way of implementing the corresponding code/action that will invoke the CI tool.

...

Info
titlePlease note
As Jira Cloud now includes automation capabilities (i.e. with the recent acquisition of Automation for Jira app), this may be the most straightforward approach to trigger (manually or automatically) builds in the CI/CD tool.



Possible (tested) apps solutions include:

...

  • you just want to trigger a CI job, period; this job may be totally unrelated to the issue from where you triggered it
  • what the CI job will do, including if it will report the results back to Xray or not, is not relevant


Image Added



For most CI tools, this only requires that you perform some HTTP request passing the CI job as an argument, somehow.

Examples

Trigger a Trigger a CI job and report back to the current issue

...

  • you want to trigger a CI job and report back the results to the current issue (e.g. Test Plan)
  • the tests that will run are unrelated with the caller issue; it's up to the logic built into the CI job to decide which tests to run


Image Modified

Examples

Trigger a Trigger a CI job for the selected tests and report back to the current issue

...

  • you want to trigger a CI job and report back the results to the current, caller issue (e.g. Test Plan, Test Execution)
  • the tests that you want to run are the automated ones present in the caller issue (e.g. Test Plan, Test Execution)


Image RemovedImage Added


This scenario is a bit more complex for two reasons:

...

There is no straightforward approach to implement this.

References