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

0 votes
Accepted answer

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 :)

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

Scrum Roles Explained: the Do's and the Don'ts

Hello Community,  Today we are going to talk about the three Scrum Roles. There is the Development Team, the Scrum Master and the Product Owner. In my opinion these three are all really impo...

49 views 0 4
Read article

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