Jira view issue screen, embedded javascript for custom fields

Eric Kim January 30, 2013

Hi,

I would like to insert some javascript to 'view issue' screen to put a text with some calculations next to the custom fields.

I have read some posts to put javascript into 'edit issue' screen, so I already have done that for 'edit issue' screen by writing some javascript into Field Description. However, I cannot find anywhere to put javascript in view issue screen.

Is there a way for this?

Cheers

2 answers

1 accepted

1 vote
Answer accepted
Jobin Kuruvilla [Adaptavist]
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.
January 30, 2013

You can either put it in the announcement banner (easy, less elegant) or write a plugin with a javascript resource that is loaded in the view issue context.

Eric Kim January 30, 2013

Thank you for answering. Is there any free plugin for that?

Jobin Kuruvilla [Adaptavist]
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.
January 30, 2013

Free plugin that puts your javascript into the view context? Don't think so. You will have to write a custom plugin.

1 vote
Renjith Pillai
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.
January 30, 2013

Use a scripted custom field with whatever logic for calculation as they more maintainable than javascripts. Javascripts are bound to break anytime a JIRA upgrade happens

https://studio.plugins.atlassian.com/wiki/display/GRV/Script+Runner

Suggest an answer

Log in or Sign up to answer