Skip to content

Conversation

@jpavlav
Copy link
Contributor

@jpavlav jpavlav commented Jan 27, 2026

This PR includes the search_users action.

Example execution:

id: 6978b867fda9453e35e0ff71
action.ref: jira.search_users
context.user: st2admin
parameters:
  log_level: DEBUG
  query: jpalmer@place.com
status: succeeded (2s elapsed)
start_timestamp: Tue, 27 Jan 2026 13:06:47 UTC
end_timestamp: Tue, 27 Jan 2026 13:06:49 UTC
log:
  - status: requested
    timestamp: '2026-01-27T13:06:47.863000Z'
  - status: scheduled
    timestamp: '2026-01-27T13:06:47.937000Z'
  - status: running
    timestamp: '2026-01-27T13:06:47.959000Z'
  - status: succeeded
    timestamp: '2026-01-27T13:06:49.276000Z'
result:
  exit_code: 0
  result:
  - accountId: redacted_id
    accountType: atlassian
    active: true
    avatarUrls:
      16x16: https://avatar-management--avatars.us-west-2.prod.public.atl-paas.net/redacted_id
      24x24: https://avatar-management--avatars.us-west-2.prod.public.atl-paas.net/redacted_id
      32x32: https://avatar-management--avatars.us-west-2.prod.public.atl-paas.net/redacted_id
      48x48: https://avatar-management--avatars.us-west-2.prod.public.atl-paas.net/redacted_id
    displayName: Justin Palmer
    emailAddress: jpalmer@place.com
    locale: en_US
    self: https://place.atlassian.net/rest/api/2/user?accountId=redacted_id
    timeZone: America/New_York
  stderr: ''
  stdout: ''

@jpavlav jpavlav requested review from a team and floatingstatic as code owners January 27, 2026 13:22
@jpavlav jpavlav requested review from cognifloyd and removed request for a team January 27, 2026 13:22
This PR includes the `search_users` action.
@jpavlav jpavlav force-pushed the jpavlav/90/add_search_user_action branch from 57f3d41 to bbdafb8 Compare January 27, 2026 14:08
@jpavlav
Copy link
Contributor Author

jpavlav commented Jan 29, 2026

@cognifloyd @floatingstatic 👋 Just a bump about review of this one.

include_active:
type: boolean
description: True to include active users.
required: true
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it necessary to make include_active and include_inactive required here? It seems you have defaults both in the yaml params here as well as in run().

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's a good point, they aren't required. Let me update that.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I made them match the defaults for the underlying method called. 👍

CHANGES.md Outdated
## 3.2.3
- Addresses [#87](https://github.com/StackStorm-Exchange/stackstorm-jira/issues/87) JIRA sensor failure due to [deprecation of /v2/search endpoint](https://developer.atlassian.com/changelog/#CHANGE-2046)

# 3.3.0
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jpavlav sorry one more thing i just noticed before I was about to merge... somehow 3.3.0 falls after 3.2.3 in the changelog. Can you please fix? Otherwise lgtm

@floatingstatic floatingstatic merged commit a11138d into StackStorm-Exchange:master Feb 2, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants