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,
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events