Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Jira automation: Check whether a version is already released when an issue is assigned to it

Nick de Palézieux
Contributor
November 20, 2023

I'm trying to write a pretty simple automation rule: When somebody sets the "Fix Version" on an issue to a version that is already released, warn them that this should not be done.

I have an automation set up to trigger whenever a value is added to the Fix Versions field.

Screenshot 2023-11-20 at 13.45.41.png

I'm struggling to check the {{released}} attribute of the smart value. I would have expected that {{fieldChange.to.released}} works. But it doesn't. I can get the ID and the name of the version, but not any of its attributes (see screenshots below). How can I write a condition based on whether the version that was just added is released or not?

Screenshot 2023-11-20 at 13.47.03.pngScreenshot 2023-11-20 at 13.47.39.png

 

Thanks for your help

2 answers

0 votes
PJ Wysota
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 Champions.
November 19, 2018

I would rather suggest using Workflow post-functions in combination with Automation for JIRA or Scheduler issue create. The whole process would look like:

1. You are manually creating Issue (or scheduling recurring issue based on some trigger in Scheduler/Automation for JIRA) with respective main Insight objects (having respective attributes in regards to criticality and timeframes)
2. Using WF post functions You can refer any depending (inbound or outbound) objects - pull them into Insight fields or pull their attributes into JIRA Custom Fields (e.g. text) - this give you a lot of flexibility in setting up triggers for further actions
3. Then You need to decide what to do:
- call new issue - using some add-on automating issues creation - use Insight variables - e.g. if specific objects and/or specific attributes apply - then raise an issue
- call subtask - as above
- send notification
- transition issue
- update objects in Insight etc.

0 votes
Yinon Negev
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 Champions.
November 13, 2018

Hi Judith.

     We do have Insight Automation Action: Create a Jira Issue.

Depending on your Use Case - you can have the Automation Rule run periodically, or following an Object Created or Object Updated, and If this Object contains a certain Attribute Value (can also be a Boolean Type Attribute) - simply create a Jira Issue - according to some predefined properties like Project, Issue Type etc. where the Summary and Description are both supporting Placeholders - so you can include information from the Object itself in the Issue created.

Kind regards,

Yinon

Team Riada

Suggest an answer

Log in or Sign up to answer