It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Screen refresh based on custom field change

How can I trigger a screen refresh if a custom field is updated in JIRA?

1 answer

1 accepted

2 votes
Answer accepted
Nir Haimov Community Leader Aug 21, 2018

where the customfield is updated from?

if it updated from inline edit or "edit" screen it should automatically refresh the page content

It is updated from the board screen.

Nir Haimov Community Leader Aug 21, 2018

can you please send a screenshot of the screen from where you do the update?

so it is done from the detail panel on the right. This displays some custom fields as well.

Nir Haimov Community Leader Aug 21, 2018

Yeah,

But from the detail panel on the right, it's the same as inline edit.

If you update a customfield from there, it is refreshing at the same moment automatically.

No need to manually trigger refresh as @Dan Buica ask

We need it to trigger a board refresh.

Nir Haimov Community Leader Aug 21, 2018

OK, i don't see a reason to do it, but in any case, there is no way (that i know of) to refresh only the board, you can refresh the entire page (like reload), and you can do it by inject JS (if you are using Jira server and not cloud).

Does it answer your needs?

Yes it does. 

Thanks.

But how exactly do I detect the update event?

JIRA.bind(JIRA.Events.INLINE_EDIT_SAVE_COMPLETE, function() {
location.reload();
})

Once the inline edit completed, this will reload your board page. 

It works just fine for Jira Server. Thanks.

Is there any way to do this on cloud?

Nir Haimov Community Leader Aug 22, 2018

Where did you inject the JS in Jira server?

In cloud i think the only way to inject JS is from the announcement banner

I've injected it in the custom field's description.

Nir Haimov Community Leader Aug 22, 2018

OK,

In cloud you can't to that, the only solution in cloud was the "announcement banner" but i just remembered that they removed it from the new experienced Jira Cloud.

There is an open ticket to Atlassian about it, but till then, there is no way to inject JS, unless you create your own plugin for cloud to do what you want

Ok.

Thank you.

Nir Haimov Community Leader Aug 22, 2018

You are welcome.

Please mark my solution as the answer so this thread will be closed

Thanks :)

@Nir Haimov  What if the custom field is updated from REST API.  Is there is any other way to refresh the page so as to see the new custom field value.

 

Thanks:)

Nir Haimov Community Leader Nov 24, 2019

Hi @YUVARAJ KUNDASI 

Sorry but,

You can't do that from the REST API.

Like YUVARAJ KUNDASI likes this

Suggest an answer

Log in or Sign up to answer
TAGS

Community Events

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

Events near you