Can you provide a bit more context? From your question, it is a bit tricky to figure exactly where the problem may be occurring.
What APIs, if any, are you currently using? Can you show/share more on what you expect to be happening and what is actually happening?
We recently published this guide on asking a good question. Check it out and see if there aren’t some other ideas in there on ways you can provide us more context to help get things sorted.
It also sounds like this might be a better question for the Atlassian Community. A quick search shows a few folks asking somewhat similar questions: https://community.atlassian.com/t5/forums/searchpage/tab/message?advanced=false&allow_punctuation=false&q=insights It may be worth perusing through those, as well.