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

javascript don't run on custom field description.

Cristian Calaf April 28, 2013

Hello. I want execute a peace of javascript code loaded on a custom field description, this custom field is only used with one issue type (task).

My problem is that if I created antoher issue type, when I open the form to create a new issue and change the issue type the custom field appears but the attached script don't work.

When I create two tasks as I don't need to change the issue type the script works properly.

How can I solve this problem?

thanks.

4 answers

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

1 vote
Henning Tietgens
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 28, 2013

Surround your script with the following to load the script in your described situation.

<script type="text/javascript">
AJS.$(document).bind('dialogContentReady', function(event, dialog) {
  <!-- your code here -->
});
</script>

Henning

0 votes
Ed Sattar July 31, 2013

i have same problem. Did you find any solution?

0 votes
Cristian Calaf April 28, 2013

Don't works :/

Thanks

0 votes
Nadir MEZIANI
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 28, 2013

Hi,

You must put this script in the description field of sheme configuration fields issue type.

This link can help you to know more for Configuring Fields and Screens

https://confluence.atlassian.com/display/JIRA043/Configuring+Fields+and+Screens

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

TAGS
AUG Leaders

Atlassian Community Events