Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Inject Javascript into the description of fields no longer works in Jira 8

When using the Scriptrunner Web Item to add a button to a page, one of the action options is to "Do nothing - you will use javascript to bind an action". The solution used to be adding your Javascript binding to the Description of a field on the page (like Summary, for example) and this would allow the necessary javascript to be available on the page that the button is being used. However, after upgrading to Jira 8, it appears that this solution for injecting Javascript no longer works. What is recommended way to get these Web Item buttons to work in Jira 8?

@Nic Brough _Adaptavist_ any thoughts?

1 answer

Hi Jordan,

Have you tried to use the Announcement Banner for loading the JS code on Jira 8?

EDIT:

You can algo have a look into JsIncluder third-party app.

Regards

Yes, that appears to be working, however that's not allowed at my organization (as it loads on every page instead of just the Project/Issue Type that the script is needed for).

What about jsIncluder? I've edited my previous answer :)

Just now seeing this thread... https://community.atlassian.com/t5/Jira-questions/javascript-inject-in-custom-fields-in-jira-7/qaq-p/170592

Looks like there may not be a good solution anymore. Either the announcement banner or an add-on. :(

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Jira Software

How to create Jira issus from Excel file?

When to use CSV importer When managing your processes in Jira, there are many occasions where you need to create a lot of tasks. Creating them one by one will cost you a lot of time and effort and i...

4,375 views 22 32
Read article

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you