Jira issue always shows “Created by app” instead of user

HI Everyone,
I am creating Jira issues using a Forge WebTrigger.
Every issue always shows “Created by: ”.

I want Jira to show the actual user name (based on a known accountId) as the creator.

I tried setting:

"creator": { "accountId": "<userAccountId>" }

Is there any supported way in Forge today to have Jira show Created by = real user

Hi @pratiks, if you want to perform an operation on behalf of an end user in a web trigger, then you probably want to use the user impersonation feature.

To do so:

  • Replace your current API call (I assume you are doing api.asApp().requestJira(...)) with api.asUser(accountId).requestJira(...).
  • The scopes that are required for the API you are calling also need to be annotated appropriately in your manifest, e.g
permissions:
  scopes:
    write:jira-work:
      allowImpersonation: true

See the documentation for more details.