Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Is it possible to pass context items from parent element to child?

Egor Tamarin January 21, 2020

Hi all,

I am developing a plugin for Bitbucket Server. One of its functionalities requires me to send a request to an external service to get some data. This data is then needed in different places in the plugin, one of which is the commit list.

I wrote a custom context provider for this, but it gets triggered with every component. On a page such as the commit list it can be a huge amount of requests in a short time. I would like to avoid that, since in the future the amount of data transferred will also grow.

I thought about passing context parameters from parent elements to their children. In this case, I have a custom web section that has a web panel attached to it. Since the web section is only rendered once, it makes sense to execute the request there. However, If I do that, I seem to be unable to pass the custom context of the web section to the attached web panel.

Is there a way of achieving what I want (i.e. passing context items from parent elements to children)?

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
atlassian, jira, marketing project management, jira for marketers, agile marketing, campaign planning, marketing workflows, jira templates, atlassian learning, marketing collaboration, project tracking, marketing teams, jira training

Streamline Marketing in Jira 🖼️

Plan, prioritize, and deliver marketing projects seamlessly. See how Jira supports your team's success. Start today!

Start now! 🚦
AUG Leaders

Atlassian Community Events