Detect if an issue was created by cloning in avi:jira:created:issue trigger

Hello,

My company is migrating all apps from Connect to Forge, and there is one important function we can’t find out how to achieve in Forge.

We added the trigger avi:jira:created:issue, which correctly sends us the information to our remote backend. However, it’s missing information on whether the event was caused by cloning another issue. This is crucial since we don’t know if the app-specific issue properties and our DB fields should be cloned or not. There is nothing in the body or headers.

Here is what it looks like:

modules:
  trigger:
    - key: issue-created-trigger
      endpoint: issue-created-event
      events:
        - avi:jira:created:issue
  endpoint: 
    key: issue-created-event
      remote: remote-app-spring
      route:
        path: /forgeIssueCreated
      auth:
        appUserToken:
          enabled: false
        appSystemToken:
          enabled: true
  @PostMapping("/forgeIssueCreated")
  @ResponseBody
  @ForgeRemote(associateConnect = true)
  public void forgeIssueCreated(@RequestBody final String issueEvent)

Previously, when we used Connect and cloned an issue, the event we received contained the following property: clonedFrom, which had the ID and key of the cloned issue.

Do you know how to get the same information in Forge?

5 Likes

After contacting Atlassian, it was discovered that this feature is in the backlog, but without an expected release date. Public ticket was made, so if you need this feature, please vote for it.