# Create an action on Flag to link to an external page

**URL:** <https://community.developer.atlassian.com/t/create-an-action-on-flag-to-link-to-an-external-page/18373>\
**Category:** Jira Cloud\
**Tags:** javascript, jira-cloud\
**Created:** [May 11, 2018, 10:36am UTC](https://community.developer.atlassian.com/t/create-an-action-on-flag-to-link-to-an-external-page/18373 "2018-05-11T10:36:25Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![paulo.alves](https://sea1.discourse-cdn.com/atlassiandeveloper/user_avatar/community.developer.atlassian.com/paulo.alves/32/43674_2.png) [@paulo.alves](https://community.developer.atlassian.com/u/paulo.alves)\
**Post date:** [May 11, 2018, 10:36am UTC](https://community.developer.atlassian.com/t/create-an-action-on-flag-to-link-to-an-external-page/18373/1 "2018-05-11T10:36:25Z")

</div>

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: [Flag](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.

---

<div class="post-metadata">

**Author:** ![george1](https://sea1.discourse-cdn.com/atlassiandeveloper/user_avatar/community.developer.atlassian.com/george1/32/39506_2.png) [@george1](https://community.developer.atlassian.com/u/george1)\
**Post date:** [July 5, 2019, 12:02am UTC](https://community.developer.atlassian.com/t/create-an-action-on-flag-to-link-to-an-external-page/18373/2 "2019-07-05T00:02:15Z")

</div>

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

```
