I saw this and your other question asking about capturing the Add Attachment event on an issue. These are good questions! However, they are more advanced / out of the answering capabilities of most people on the general community.
There is a fully-dedicated Developer community separate from this one and I'd encourage you to pop in over there and ask your questions to the developer audience. It sounds like you are doing some cool stuff and I want you to be able to get answers from the developers capable of answering them well.
All the best,
Badges are a great way to show off community activity, whether you’re a newbie or a Champion.Learn more
Any other country that celebrates Midsummer holiday (this friday 22 June)?
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!
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