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

How can I grab the 'Development' info associated to a Jira issue without using a DevOps trigger?

Connor Skiro
Contributor
October 17, 2024

I'm looking to create a rule that will send a Slack message when a Pull Request has been open for a certain period of time. 

I started out using a Scheduled trigger before realizing the `Development` information can only be accessed when using one of the Pull Request triggers. 

Then, I started looking at Atlassian's REST API and found a custom field containing the 'Development' info. However, it's very limited (e.g., don't have access to the PR URL) compared to the Jira automation development smart values. 

Is there a workaround to the pseudo code/logic below?

1. When a PR hasn't been updated for more than 1 day

2. Then notify a channel in Slack that 

{{issue.assignee.displayName}}'s PR has been open since {{pullRequest.createdDate}.

Please review {{pullRequest.url}} as soon as possible.

1 answer

0 votes
Bill Sheboy
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 17, 2024

Hi @Connor Skiro 

For this scenario, I believe you have a couple of options with built-in features:

  • Using the development triggers, save information needed with the impacted issues, including a date field.  Using a scheduled trigger on JQL, evaluate any not-done issues where the dates meet your criteria, and then send the message.
  • Using a scheduled trigger rule with no JQL, use the Send Web Request action to call the REST API of your pipeline / source control tool check the status of your PRs, and respond accordingly.

Kind regards,
Bill

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events