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

Hi,

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

This widget could not be displayed.
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.

Suggest an answer

Log in or Sign up to answer
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Posted yesterday in Teamwork

What teamwork quotes inspire you?

Hey everyone! My name is Natalie and I'm an editor of the Atlassian Blog and I've got a question for you: What's your favorite quote about teamwork?  We've compiled a list here, along with...

111 views 15 7
Join discussion

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