Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Where is api rest gadget/1.0/intro in Jira 7.x

Cyrille T_ January 8, 2017

Hello, in JIRA 6.3, I call api rest gadget/1.0/intro in Introduction Gadget, but I can't find it in JIRA 7.x. Someone have news about it ?

Thank you by advance for your help.

var gadget = AJS.Gadget({
                    baseUrl: "__ATLASSIAN_BASE_URL__",
                    view: {
                        enableReload: true,
                        onResizeReload: true,
                        template: function (args) {
                            var gadget = this;
                            gadget.getView().addClass("g-intro");
                            gadget.getView().html(args.intro);
                            gadgets.window.setTitle("Présentation de JIRA & Documentations");
                            AJS.$("form").attr("target", "_parent");
                            gadget.resize();
                        },
                        args: [
                            {
                                key: "intro",
                                ajaxOptions: function () {
                                    var apiUrl;
                                    apiUrl = AJS.contextPath() + "/rest/gadget/1.0/intro";
                                    return {
                                        url: apiUrl,
                                        dataType: "html"
                                    };
                                }
                            }
                        ]
                    }
                });

JIRA 6.3.15 api browser :

jira6.3.15 api gadget 1.0 intro.png

JIRA 7.2.2 API browser :

jira7.2.2 api gadget.png

Error message in JIRA 7.2.2 :

<status>
<status-code>404</status-code>
<message>
null for uri: http://localhost:2990/jira/rest/gadget/1.0/intro
</message>
</status>

1 answer

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

1 vote
Answer accepted
Volodymyr Krupach
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.
January 8, 2017

Hi cyrille,

This is not the supported API so I guess that Atlassian removed it when shifting from the old "gadget" modules to new "dashboard-item".

It's better to rely only on supported REST API and create own REST API entries if needed.

TAGS
AUG Leaders

Atlassian Community Events