How to send error message to ViewIssue page from Servlet (which will post the data to external App)

I am trying to send error message and success message from Servelt to ViewIssue Page, i dont find anything for that. is there any way i can send the error/success message with http response and it should display the message in banner or board

resp.sendRedirect((new StringBuilder()).append(req.getContextPath()).append("/browse/").append(issue.getKey()).toString());

1 answer

0 vote

Servlets are independent of the issue view framework, so there's no real way for them to talk to each other.

What are you actually trying to do here? In terms of what the users see?

I have added option in more section and whenever I click that option menu, it post the current issue details to external application (say any other third party bug database) and return status and I want to send that message back to issue view. So that user will be notified for the status.

Ok. There's not really any way to do this. The issue view you return to is executed after your action is finished and has nothing to do with it. So you'd need to hook something into the core view of Jira to get messages from the action and execute some sort of response.

You might find it easier to have a simple field that you update on the issue during your action. Or a response screen inside the action.

Ok Nic. i will try response screen, if that does not work, i will go for custom field option.

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Julia Dillon
Posted Tuesday in Jira

Tell us how your team runs on Jira!

Hey Atlassian Community! Today we are launching a bunch of customer stories about the amazing work teams, like Dropbox and Twilio, are doing with Jira. You can check out the stories here. The thi...

220 views 1 18
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you