Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

I need help to create Script in ScriptRunner for Jira Cloud

Jonathan Santos
Community Champion
November 8, 2021

Hi community 

I need your help.
Jira Cloud, addon Xray (Cloud).
I need create a script to capture which Test I have selected in a Test Execution or Test Plan, to be able to send it through automation for Jira to Gitlab.
Attachment images.
URL manual:
https://docs.getxray.app/display/XRAYCLOUD/Taking+advantage+of+Jira+Cloud+built-in+automation+capabilities#TakingadvantageofJiraCloudbuiltinautomationcapabilities-TriggeraGitLabworkflowfromaTestPlanandreporttheresultsbacktoit2021-11-08_12h47_06.png

This is possible ?

1 answer

1 accepted

0 votes
Answer accepted
Kristian Walker _Adaptavist_
Community Champion
November 8, 2021

Hi Jonathon,

I have included the same response below that we have given on your support ticket that you raised for reference so that other users can see this.

I can confirm that it is possible to write scripts that would interact with an external application such as XRay for Jira Cloud, as long as the application contains a rest API that can be called to interact with it.

In order to achieve this requirement, you should review the Rest API documentation for the external application in order to see what Rest API's you will need to use to achieve this and we would advise contacting the third party applications support team, if you have any questions on how their third party API works.

We have a documentation example located here which shows how you can post a message to Slack and this example may prove a useful reference in helping you to create the script that you require, as it shows an example of making an API call to an external rest API.

Finally, I can confirm we have created the Knowledge Base Article located here l which outlines further the details on the steps that should be used to write code that interacts with third-party applications or plugins and this may be a useful reference guide to help you to achieve your requirement.

I hope this information helps.

Kind Regards,

Kristian

Jonathan Santos
Community Champion
November 10, 2021

Suggest an answer

Log in or Sign up to answer