Forums

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

Can we script in jira plugin to call rest api and render the response ?

navya k
Contributor
September 4, 2019

Is there any way to call REST API and response in UI through Jira plugin?

Or Should we use ScriptRunner plugin to call and generate ui and render the response?

1 answer

0 votes
Rafael Pinto Sperafico
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 4, 2019

HI @navya k ,

You could make use of ScriptRunner or create your own Atlassian plugin using Atlassian SDK.

Here is an example on creating a REST API and UI render - https://developer.atlassian.com/server/framework/atlassian-sdk/creating-an-admin-configuration-form/ using Atlassian SDK.

It is unclear from your description if you are going to consume a REST API endpoint from the same application or external Atlassian application or external application.

If from the same application, the link above should do.

If from external Atlassian application, then you should consider creating application link, so your request(s) would come through and nor CORS error would be thrown.

If external application, you should make sure CORS will not be an issue.

Kind regards,
Rafael

navya k
Contributor
September 4, 2019

@Rafael Pinto Sperafico Thanks for your quick response.

I have some external Rest API, I should call in JIRA and render the response in UI.

I have used JIRA plugin to create REST API's, which will call external Rest API, but now I got to know that we can use ScriptRunner to call REST API's and we can also render UI.

 

So, I want to know which one is better. 

Rafael Pinto Sperafico
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 5, 2019

Hi @navya k ,

"which one is better" - based on what you have explained, you can accomplish the same thing using one or another. However, if you are asking for my personal opinion, use the one you are more comfortable with, have more experience with.

Kind regards,
Rafael

navya k
Contributor
September 5, 2019

@Rafael Pinto Sperafico Can you give me some examples link of Atlassian plugin using Atlassian SDK for this scenario?

 

Thanks again :) 

Suggest an answer

Log in or Sign up to answer
TAGS
atlassian, loom, loom for training, loom for teaching, video training, async learning, online education, screen recording, loom tutorials, loom use cases, atlassian learning, team training tools, instructional video, virtual training tools

🛗 Elevate Your Training and Enablement with Loom

Join us June 26, 11am PT for a webinar with Atlassian Champion Robert Hean & Loom’s Brittany Soinski. Hear tips, stories, and get your burning questions answered. Learn how Loom makes training and enablement easier. Don’t miss it!

Register today
AUG Leaders

Atlassian Community Events