Forums

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

I want add btn in 404 page

lei February 25, 2025

image.png

 

There is no permission problem with this page. I want to add a button that takes users to a new page when clicked. How to do it?

1 answer

0 votes
Matthias Gaiser _K15t_
Community Champion
February 25, 2025

Hi @lei

I believe that's not something which can be achieved easily. Here's an old feature request asking for a possibility to customize that page. However, it didn't get much traction and I doubt that Atlassian will really work on that.

Here's also an article which explains a bit how to customize the 404 error page for Confluence. I believe these should be similar for Jira. However, this includes modifying the Confluence/Jira source files which I wouldn't recommend since this will only create troubles for you for the next Jira update.

Cheers,
Matthias.

lei February 26, 2025

I want to implement a function that allows users to apply for access permissions when they don't have the permission to access an issue.

Do you have any good suggestions?

Matthias Gaiser _K15t_
Community Champion
February 26, 2025

🤔 - I've written an article how to add a project-based banner on Jira Data Center a while ago.

If you're up for some Javascript hacking, you can take the same idea from that article and modify it to your needs. Instead of showing a banner for certain projects, you need to find a condition from the 404 error page and then show your message.

I assume you should be able to find something on the 404 error page which you can use for that.

lei February 26, 2025

 

image.png

We used a servlet filter to intercept /browse/* and check if the user has permission when accessing an issue. If the user doesn't have permission, we use httpResponse.sendRedirect to redirect the user to a specified self-developed permission application page, and this works fine. However, there is another scenario for the list with <url-pattern>/projects/*/issues/*</url-pattern> that cannot be intercepted. Do you have any solutions to this problem?

Matthias Gaiser _K15t_
Community Champion
March 4, 2025

Not really,

but if you use the banner solution I've mentioned the post before, you could possibly filter for that url client-side and show some note or maybe even redirect from the client-side.

Suggest an answer

Log in or Sign up to answer