The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

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

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

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

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 Champions.
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 Champions.
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 Champions.
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

TAGS
AUG Leaders

Atlassian Community Events