feat(jira): add search_users tool for user lookup by email#3451
feat(jira): add search_users tool for user lookup by email#3451waleedlatif1 merged 7 commits intostagingfrom
Conversation
PR SummaryMedium Risk Overview Wires a new Search Users operation into the Jira block UI/param mapping, exports/registers the tool in the Jira barrel and global Written by Cursor Bugbot for commit 1bbeee4. Configure here. |
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
Greptile SummaryThis PR adds a Key points:
Confidence Score: 4/5
Important Files Changed
Sequence DiagramsequenceDiagram
participant UI as Jira Block UI
participant FW as Tool Framework
participant ST as search_users.ts
participant AO as Atlassian OAuth API
participant AJ as Atlassian Jira API
UI->>FW: Operation = "search_users" (query, maxResults, startAt)
FW->>FW: Build params via tool() config handler
alt cloudId provided
FW->>AJ: GET /ex/jira/{cloudId}/rest/api/3/user/search?query=...
AJ-->>FW: HTTP Response (array of users)
FW->>ST: transformResponse(response, params)
ST->>ST: response.ok check
ST->>ST: data = response.json()
else cloudId not provided
FW->>AO: GET /oauth/token/accessible-resources
AO-->>FW: HTTP Response (resources list)
FW->>ST: transformResponse(response, params)
ST->>AO: GET /oauth/token/accessible-resources (via getJiraCloudId)
AO-->>ST: resources list
ST->>ST: Find cloudId by domain
ST->>AJ: GET /ex/jira/{cloudId}/rest/api/3/user/search?query=...
AJ-->>ST: array of users
end
ST->>ST: filter(Boolean), map with transformUser
ST-->>FW: { success, output: { ts, users[], total, startAt, maxResults } }
FW-->>UI: Result
Last reviewed commit: 1bbeee4 |
|
@greptile |
|
@cursor review |
|
@greptile |
|
@cursor review |
|
@greptile |
|
@cursor review |
Summary
jira_search_userstool to look up Jira users by email or display name viaGET /rest/api/3/user/searchType of Change
Testing
Tested manually
Checklist