Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Next challenges

Recent achievements

  • Global
  • Personal


  • Give kudos
  • Received
  • Given


  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Powershell automation from Jira Service Management Edited

Hi there,

This is a bit of a investigation question so bear with me.  In our current service desk I have built an offboarding process that is triggered in it's simplest form by a valid contract end date.

On the day of the leaver at 7:00pm the process starts by creating a leavers ticket in the system, in the support queue at the location for the person leaving.  It then changes their password in AD, removes the company field, moves the user to a suspended OU, removes a large number of their groups, then writes a log back to the service desk of the actions taken, the group memberships that were removed and fires off an email as a summary.  In 30 days an email is sent about permanent disabling of the account and the final steps are taken.   This is driven through the automation processes in our system, which then via a powershell scripts passes details to AD to perform all the actions and then completes it back in the service desk.

Basically, does Jira Service Management have such automation, powershell script calling, variable passing and the like to achieve the same results.  We leverage this sort of thing a few times with on boarding, travel tickets between our sites, but we use automation processes very very extensively for importing data from other systems, exports for Power BI and such.

If we went down this road it would be cloud hosted.

Happy to drown in links about this if someone wants to steer me in the right direction.




1 answer

1 accepted

1 vote
Answer accepted
Daniel Eads Atlassian Team Dec 02, 2020

Hi Steven,

Great question - I really love seeing this kind of work automated.

It's likely that you can make some progress in this direction. While Jira Service Management can't run Powershell scripts directly (and you'd need something "in" your AD environment anyway), it does have Automation capabilities that could come in handy.

  1. Jira's automation engine is built-in and can run when something happens - for example when a new offboarding issue is created, or it transitions to a specific status, or you can run a rule every day at 7:00pm that executes against any issues with the "contract end date" of that day.
  2. As an action in an automation rule, you can fire a webhook. Checking out the rule playground, where you can look at sample rules and create your own in a sandbox might be helpful in seeing what the Automation rules can do. You can use smart values to send information in the body of the webhook.
  3. You can receive the webhook and trigger a powershell runbook in Azure 
  4. At the end of your powershell runbook, you can update the issue status in Jira Service Management using Jira's REST API (authenticated) or potentially using an incoming webhook for Jira's automation engine (unauthenticated)

Let me know if you need extra detail in any particular step. Sounds like a fun project!


Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Jira Service Management

Why upgrade to Jira Service Management Premium?

We often have questions from folks using Jira Service Management about the benefits to using Premium. Check out this video to learn how you can unlock even more value in our Premium plan.  &nb...

235 views 1 6
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you