Mentions randomly not working

David Yu
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 21, 2024

Has anyone experienced mentions randomly failing?

In the Console, I'll see an error for "undefined missing jira/mention/mention-element"

This is all random...if I reload the page, it works again.

On 9.12.4; I did not experience this prior to upgrading from 9.4.X.

mentions-broken.png

4 answers

1 accepted

3 votes
Answer accepted
David Yu
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
April 23, 2024

https://jira.getxray.app/browse/XRAY-9729

Was due to X-Ray add-on.

Update: X-Ray believes it's something Atlassian introduced that's causing an interaction with plugin vendors, not just X-ray.

0 votes
Heiko Gerlach October 25, 2024

Since neither Atlassian nor XRAY fixed this bug, today I have created a simple Jira App.

Steps to create your own Mention Bug Fixing App (Requires Atlassian JDK)

atlas-create-jira-plugin

<enter details>

Now after creation you do not need any other components/modules to add.

 

Just edit the atlassian-plugin.xml

Add the following dependency to your web resource.

<dependency>jira.webresource:mentions-feature</dependency>

 

Add the context atl.general

Edit the .js file and add this line

window.require("jira/mention/mention-element");// bugfix for missing mention element

Package with atlassian-package,

Install and the issue will be solved.

Good Luck

 

Heiko Gerlach

Nexus AG 

 

Here is the complete atlassian-plugin.xml

<?xml version="1.0" encoding="UTF-8"?>

<atlassian-plugin key="${atlassian.plugin.key}" name="${project.name}" plugins-version="2">
<plugin-info>
<description>${project.description}</description>
<version>${project.version}</version>
<vendor name="${project.organization.name}" url="${project.organization.url}"/>
<param name="plugin-icon">images/pluginIcon.png</param>
<param name="plugin-logo">images/pluginLogo.png</param>
</plugin-info>
<!-- add our i18n resource -->
<resource type="i18n" name="i18n" location="MentionBugFix"/>
<!-- add our web resources -->
<web-resource key="MentionBugFix-resources" name="MentionBugFix Web Resources">
<dependency>com.atlassian.auiplugin:ajs</dependency>
<dependency>jira.webresource:mentions-feature</dependency>
<resource type="download" name="MentionBugFix.css" location="/css/MentionBugFix.css"/>
<resource type="download" name="MentionBugFix.js" location="/js/MentionBugFix.js"/>
<resource type="download" name="images/" location="/images"/>
<context>MentionBugFix</context>
<context>atl.general</context>
</web-resource>
</atlassian-plugin>

and the Javascript File

window.require("jira/mention/mention-element");// bugfix for missing mention element

 

Heiko Gerlach October 25, 2024

The solution is tested heavily by at least 200 Users and it works very well in Jira 9.12.14. 

Please make sure to reload your Browserpage once after installing the App.

 

BR Heiko

0 votes
Gilles Volluz
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
July 23, 2024

FYI, I do get the same console error in Firefox, but not in Chrome. Clearing the cache didn't help, and reloading the page many times as well. What a pain in the ass!

0 votes
Benjamin
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
March 22, 2024

@David Yu 

 

Haven't encounter this but sometime I do run into weird quirks here and there. Usually, clearing of the cache or going into incognito mode takes care of it. 

 

 

Suggest an answer

Log in or Sign up to answer