JIRA/Confluence plugin - Can it customize the Login Page?

William Luong October 29, 2018

Hey,

I spoke with some folks and they didn't want to go directly to the file to make updates to the Login Page. Just wondering if plugins we create can modify the Login Page as well as the other pages with say, JavaScript and CSS.

2 answers

1 accepted

0 votes
Answer accepted
William Luong October 31, 2018

I found the answer I was looking for. Although my title was a bit vague. The title should've been 'Can I use a JIRA/Confluence plugin's JavaScript to influence the Login Page?'

Yes I can.

  1. I just used this page here to create the skeleton plugin: https://developer.atlassian.com/server/framework/atlassian-sdk/create-a-helloworld-plugin-project/
  2. Read up on Web Resource. (https://developer.atlassian.com/server/framework/atlassian-sdk/web-resource-plugin-module/)
    1. The .js to modify is located here: <plugin_name>\src\main\resources\js
    2. Open atlassian-plugin.xml under <plugin_name>\src\main\resources
    3. Look for where it says <context>plugin_name</context>
    4. Change it to<context>atl.general</context>
  3. Then deploy it again using atlas-run
Fadoua
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
October 31, 2018

@William Luong😊 it looks more like you are trying to create your own plugin. Thank you for sharing the steps! Greatly appreciated.

William Luong October 31, 2018

Yup I was :D. And no problem

0 votes
Fadoua
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
October 31, 2018

Good day @William Luong,

Can you please elaborate little bit on what you are trying to achieve? It looks like you don't like the log in page and want to make changes to it. Am I right?

Best

Fadoua

William Luong October 31, 2018

Hey @Fadoua, I just wanted to add a chatbot, but it just gets called using javacsript, and I want it to be available on every page. I tried following the hello world example of adding a plugin, but the javascript isn't being read. I tried using console.log() and alert()

Fadoua
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
October 31, 2018

@William Luonga Chatbot may work for JIRA Service Desk. Did you check if Issue Collector can meet your needs?

Also just a gently reminder keep in mind that a chatbot in JIRA or Confluence may trigger some slowness.

Best,

William Luong October 31, 2018

hey @Fadoua, I don't understand how the Issue Collector can help?

I just need something, like a template (or masterpage in terms of SharePoint) where I can insert my JavaScript and it'll apply to all pages. But I have a feeling a JIRA Plugin doesn't handle the login Page as well. The JavaScript will init the bot from another source. Will that trigger slowness?

Fadoua
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
October 31, 2018

@William Luong

  • Chatbot is to help your customers/users/....?

Below is what can be done with issue collectors:

An issue collector allows you to easily gather feedback on any website in the form of JIRA issues, even from users who don't have JIRA accounts.

Once you have configured the look and feel of an issue collector, simply embed the generated javascript in any website.
Visitors to your website will then see a trigger they can click to raise bugs and will get a form directly in your webapp to provide more details.
Then watch the feedback appear in the form of JIRA Issues!

 

Regarding slowness, I mentioned it so that you keep it in mind.

 

Best,

Suggest an answer

Log in or Sign up to answer