Forums

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

Adding web items to issues dialog box

Pradeep A
Contributor
July 9, 2021

Hi what should I do If I need to add my web item here

create issue.jpg

1 answer

0 votes
Nic Brough -Adaptavist-
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.
July 9, 2021

You can't add web-items to dialogue boxes

Pradeep A
Contributor
July 9, 2021

Hi @Nic Brough -Adaptavist- , I have another question I was going through the web item examples from adaptavist docs. In the advanced dialog section they have mentioned that we need to use javascript if we need complex wiring with the buttons we create. I would like to know how

 

(function ($) {
$(function () {
AJS.dialog2.on("show", function (e) {
var targetId = e.target.id;
if (targetId == "my-own-dialog") {
var someDialog = AJS.dialog2(e.target);
$(e.target).find("#dialog-close-button").click(function (e) {
e.preventDefault();
someDialog.hide();
someDialog.remove();
});
// etc
}
});
});
})(AJS.$);

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events