Update Structure view from plugin

Hello.

I`m developing a plugin that listen to the updates from any issue.

When the issue is updated, from the default screen or from the structure view, i have to update some fields on the children issues and parent. This is working well. I can navigate through the Structure and update them.

The problem is that the fields of the children and parent`s issue is not updated on the screen.

Is there a way to refresh the Structure with the new values from my plug-in?

Thanks.

1 answer

1 accepted

1 vote

Hi Victor, make sure that when you update the fields, you send a notification event for the updated issue (this actually should be done automatically by JIRA API). Structure plugin polls JIRA periodically and should refresh the updated fields on its own - within 10 seconds or so after the update.

If for some reason the events are not generated (it also could be the case that some other plugin throws an exception and stops the event distribution), then you can also use IssueEventBridge interface from the Structure API to report a change.

Hope this helps!
Igor

Thanks Igor.

It`s working with the IssueEventBridge interface. All issues are updated now.

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Published Apr 19, 2018 in Marketplace Apps

Calling all developers––You're invited to Atlas Camp 2018

 Atlas Camp   is our developer event which will take place in Barcelona, Spain  from the 6th -7th of   September . This is a great opportunity to meet other developers and get n...

366 views 0 6
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