Is there an integration between "Automation for Jira" and pagerduty? We want to automatically assign tickets based on the "on call" person in pagerduty.
Is there a way to get this name? Or can we make REST calls from Automation for Jira?
-ms
Hi Michael,
No, we don't support this quite yet: https://codebarrel.atlassian.net/browse/AUT-204
We do have an outgoing webhook action (https://docs.codebarrel.io/automation/components/actions/actions.html#send-webhook), but currently it can only send POSTs and any response data can't be used in the rest of the Automation rule in Jira.
We've got quite a few higher priority items in our backlog at the moment so it will be a while before we can get to this, but we'll let you know when we get a chance to work on this.
Cheers,
Andreas
We'd like to assign an owner when a label, 'on-call' is added to a JIRA issue based on the current active duty person in PagerDuty. Is that possible within Scriptrunner?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Ever found out if this is possible ? We want to do the same thing.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I would just like to change the Jira assignee to the user that either acknowledges the incident or is assigned to it. Is this possible yet?
I tried to just sync them with the custom fields but that does not seem to work.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Michael Shulman ,
We managed to set up this using JIRA Automation, Sharing my experience here if anyone still needs a way to achieve this.
Trigger: Issue Created
Action: Web Request to Pagerduty API to get the oncall
Creation Variable: Retrieve the oncall email id from web response
Action: Web Request to Jira api to get the Account ID, pass the email id (variable from the previous step)
Action: Assign the JIRA using the account ID from the web response of the previous step.
Thank you
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Where is JIRA Automation in PagerDuty?
Under Automation I only have 3 choices: Event Orchestration, Event Rules, Automation Actions
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Sam
It's not in Pagerduty, the above steps are in Jira Automation Rules.
In Pagerduty , you can add Jira cloud extension to create Jiras automatically
https://support.pagerduty.com/docs/jira-cloud
In Jira, setup the above mentioned rule to assign it to current Oncall
Thank you
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Vignesh,
Thank you for sharing that. Can you give an example of the API request you made (ofc you can leave any secrets or sensitive information out) and how accomplished this step: Creation Variable: Retrieve the oncall email id from web response?
Trying to do the same as you but not able to get it to work.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Lee Segal ,
You can set up Web requests like the below,
Also, trigger another Webrequest in the next step with the user email to Jira API to get the account ID and assign the JIRA to the retrieved account ID.
Thanks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks for posting this @Vignesh Suthanthirapandian ... is this the endpoint you used?
https://api.pagerduty.com/oncalls?include%5B%5D=users&escalation_policy_ids%5B%5D=${ESCALATION_POLICY_ID}&schedule_ids%5B%5D=${SCHEDULE_ID}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The endpoint configured to get the oncall details,
Replace the below with respective values
SCHEDULE_ID
ES_POLICY_ID
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Vignesh SuthanthirapandianI'm struggling to figure out how you then used that variable {{jiraaccountid}} - I added that as a next action:
But even though it seems like there is a success in the logs, the assignee field stays the same:
Status: Success
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
still no response and update June 2023... so sad. i believe other providers service is much better,
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello from 2022 looking for the same thing.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yes, still hoping for you to add this feature, thanks!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
It says answer accepted but I think everyone is still waiting for a solution
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I am here looking for the same answer in 2023...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.