Hi,
I am writing a JIRA add-on that adds a button to the workflow buttons area. When the button is clicked I send a request to a REST API using JS.
I want that the issue gets 'greyed out' if I click the button so that the user is not able to take any actions anymore. If you go offline and click for example 'Assign' inside an issue, you will see what behaviour I mean. After the action has finished I want that the issue gets reloaded.
My question is now if there is an API which I can use in order to do this or if I have to implement my own logic.
I found out how to dim the screen and show the loading spinner:
AJS.dim();
JIRA.Loading.showLoadingIndicator();
To undim use the following:
AJS.undim();
JIRA.Loading.hideLoadingIndicator();
The issue can be updated with the following call:
JIRA.trigger(JIRA.Events.REFRESH_ISSUE_PAGE, [JIRA.Issue.getIssueId()]);
Glad you found the solution :-) Thank you for sharing this.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
What do you exactly mean by "gets greyed out"? You could transform the issue to another status for example. That status could prohibit users to take more actions on an issue (e.g. status -> "Done" / "Closed" and remove "re-open" action / hide it from certain users).
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I attach a recording of what I mean with "greying out". I don't want to introduce any status transitions.
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.