I created a plugin that implements a new action ("create subtasks for versions"). This action creates a number of subtasks for a selected group of versions. Typically a user would use this action from a bug when in a search filter (e.g., "unscheduled")
When the action is complete, I know how to redirect to the bug, but I cannot figure out how to redirect back to the original search filter URL. Is this possible?
Got it:
@Override
protected String doPostCreationTasks() throws Exception { String rtn = "/browse/" + getOrigIssueKey(); SearchRequest searchRequest = getSearchRequest(); if (searchRequest != null) { rtn += "?filter=" + searchRequest.getId(); } return returnComplete(rtn); }
IssueActionSupport.getSearchRequest is what I needed.
Is this possible?
I know that it is possible. I just cannot remember how to get it out of the session. Take a look at the com.atlassian.jira.web.action.issue.IssueNavigator class.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.