How to trigger script on some action?

Hello, I am trying to automate task in Jira, where if approver approves some request, I want to call script (which does export assignee name in excel file). very new to Jira so step by step answer would be highly appreciated. Thanks

2 answers

1 accepted

Frankly that looks like a bad idea.

You can always use the famous script runner and add a post function (which is nothing but java code) and do whatever you want. Generating an excel file will be tricky.

If you can lets us know what you end goal is, we might be able to help.

Hi Renjith, Thanks for your reply. I am trying to automate one of our process , where we remove all user access from TFS release branch after certain date. After that if developer requires access on that TFS branch, he/she requires to raise Jira ticket. This ticket this appoved by configuration manager in Jira and after that someone manually add that developer back again in TFS - project branch.

What I want to achieve is as soon as manager approves the Jira request, automatically that user should have been added to TFS. I have Powershell function script ready which takes username and add to TFS branch, but I am trying to figure out when it should get called and with what user. So what I am looking for is somehow Jira passes user which got approved and call powershell function by passing it as parameter.

I hope I am making sense now.

Regads,

Ah that makes sense. But where is Excel coming into picture here? You just need to call the powershell script which deals with TFS, right?

Yes thats correct, I said excel because I have Powershell script ready which reads username from excel file and updates in TFS. If it can be done without excel then also its ok,

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Julia Dillon
Posted Tuesday in Jira

Tell us how your team runs on Jira!

Hey Atlassian Community! Today we are launching a bunch of customer stories about the amazing work teams, like Dropbox and Twilio, are doing with Jira. You can check out the stories here. The thi...

387 views 1 18
Join discussion

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you