Content
View differences
Updated by Pavel Balashou 11 days ago
**As** an administrator managing Jira import configurations
**I want to** see the `Token owner` for each configuration in the configurations tableĀ
**so that** I can tell at a glance which user's personal access token (PAT) a configuration authenticates with.
https://www.figma.com/design/959fRLTsmhOiHkXYPfd0D2/Jira-import-admin-settings?node-id=974-10903&t=jfhCkfPSsEwGvo75-0
**Acceptance criteria**
* A `Token owner` column is added to the configurations table on the Jira import main page.
* The column shows the user who owns the PAT stored on the configuration.
* When no token owner can be resolved, a clear empty/placeholder state is shown.
**Technical notes**
* Resolve the owner from the PAT/credentials associated with the configuration record. It can be done with the following endpoint.
```text
curl -H "Authorization: Bearer {PAT} "https://jira-dc.openproject.org/rest/api/2/myself"
{
"self": "https://jira-dc.openproject.org/rest/api/2/user?username=pavel.balashou",
"key": "JIRAUSER10000",
"name": "pavel.balashou",
"emailAddress": "p.balashOU@openproject.com",
"avatarUrls": {
"48x48": "https://jira-dc.openproject.org/secure/useravatar?avatarId=10335",
"24x24": "https://jira-dc.openproject.org/secure/useravatar?size=small&avatarId=10335",
"16x16": "https://jira-dc.openproject.org/secure/useravatar?size=xsmall&avatarId=10335",
"32x32": "https://jira-dc.openproject.org/secure/useravatar?size=medium&avatarId=10335"
},
"displayName": "Pavel Balashou",
"active": true,
"deleted": false,
"timeZone": "Etc/UTC",
"locale": "en_US",
"groups": {
"size": 4,
"items": []
},
"applicationRoles": {
"size": 2,
"items": []
},
"expand": "groups,applicationRoles"
}
```
**Permissions and visibility considerations**
* Administrators with access to the Jira import admin settings.
**Out of scope**
* Changing or reassigning the token from this table.
**I want to** see the `Token owner` for each configuration in the configurations tableĀ
**so that** I can tell at a glance which user's personal access token (PAT) a configuration authenticates with.
**Acceptance criteria**
* A `Token owner` column is added to the configurations table on the Jira import main page.
* The column shows the user who owns the PAT stored on the configuration.
* When no token owner can be resolved, a clear empty/placeholder state is shown.
**Technical notes**
* Resolve the owner from the PAT/credentials associated with the configuration record. It can be done with the following endpoint.
```text
curl -H "Authorization: Bearer {PAT} "https://jira-dc.openproject.org/rest/api/2/myself"
{
"self": "https://jira-dc.openproject.org/rest/api/2/user?username=pavel.balashou",
"key": "JIRAUSER10000",
"name": "pavel.balashou",
"emailAddress": "p.balashOU@openproject.com",
"avatarUrls": {
"48x48": "https://jira-dc.openproject.org/secure/useravatar?avatarId=10335",
"24x24": "https://jira-dc.openproject.org/secure/useravatar?size=small&avatarId=10335",
"16x16": "https://jira-dc.openproject.org/secure/useravatar?size=xsmall&avatarId=10335",
"32x32": "https://jira-dc.openproject.org/secure/useravatar?size=medium&avatarId=10335"
},
"displayName": "Pavel Balashou",
"active": true,
"deleted": false,
"timeZone": "Etc/UTC",
"locale": "en_US",
"groups": {
"size": 4,
"items": []
},
"applicationRoles": {
"size": 2,
"items": []
},
"expand": "groups,applicationRoles"
}
```
**Permissions and visibility considerations**
* Administrators with access to the Jira import admin settings.
**Out of scope**
* Changing or reassigning the token from this table.