Forums

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

I need working example of how to use Create variable

aagrawal September 27, 2021

I am trying to set up a Rule where when you do a version release,

1. It should include custom fields

2. it should send one email to the target group listing all stories and bugs

with #lookupIssues it is not possible to include custom fields.

I tried to use JQL condition in new Condition and also Branch rule / related issues JQL 

but it sends mail for each issue returned rather than one mail listing all issues.

I came to know it is possible through Create Variable.

Any help will be appreciated.

 

1 answer

1 accepted

0 votes
Answer accepted
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.
September 28, 2021

Hi @aagrawal 

If your branch has JQL or could return more than one issue, you cannot use a created variable in this way.  The asynchronous processing of branches would repeatedly create/destroy the variable and you would get nothing.  Please see this article for more details on this (particularly in the post's responses): https://community.atlassian.com/t5/Jira-articles/Automation-for-Jira-Create-variable-New-component/ba-p/1448118

As a work-around for Lookup issues not having your custom fields and created variables not working with a multi-issue branch, you can use a web request and  the REST API.  For example:

I included links in the above steps to help you.  If you have issues trying this method, please post your rule image and the community can offer help.

Kind regards,
Bill

aagrawal September 30, 2021

Thanks Bill.

Suggest an answer

Log in or Sign up to answer