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?
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
@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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Rafael Pinto Sperafico Can you give me some examples link of Atlassian plugin using Atlassian SDK for this scenario?
Thanks again :)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.