Create an action on Flag to link to an external page

Hi there,

I’m trying to jump to a another page using the Flag actions. I tried multiple ways to create event listeners but it wasn’t triggered.

Here is the documentation I’m following: https://developer.atlassian.com/cloud/jira/software/jsapi/flag/

I’m not sure if it’s possible, but I appreciate any feedback.

Best regards,
Paulo Alves.

2 Likes
AP.events.on('flag.action', function(event){
  if (event.actionIdentifier == 'action_key') {
    window.top.location.href = 'URL'
  }
})