I'm trying to use AJS and REST services, where to Include AJS framework?


Im not coding a gadget or plugin, I want to edit an HTML screen file and I want to execute some javascript on submiting the issue, lets say on Edit Issue button Click?

1 answer

1 accepted

Accepted Answer
0 votes
Mizan Community Champion Mar 12, 2012

You can add javascript to the field's description . Have a look at these tutorials for javascript and Ajs in jira fields.

Hello Mizan,

What if I need a wider scope and not on the field description, If I need to read a value from 2 fields and then decide. Where I find the field descripion and does JIRA by default refrence AJS or I need to include it? more details please

thank you Mizan :)

Mizan Community Champion Mar 12, 2012

Yes you can decide by reading the values from 2 fields. You will have to include this logic of checking the 2 fields in your javascript and place this javascript in the fields description . AFAIK AJS is by default. you can even use the behaviours plugin to add behaviours to your fields.

Many thanks :)

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Tuesday in Featured Groups

Tuesday tips & tricks: What is the Atlassian Community?

It's officially Tuesday, which means it's officially time for another tip to help you better navigate this space we call the Atlassian Community. 😄 I got a great question from community member, Sa...

121 views 6 8
View post

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you