Can I building condition in A4J that check if certain field is exist in issue screen or not?

Eliyahu Klein --CNTR February 11, 2025

Hi,

I want to build a global automation rule that uses an 'If/Else condition' component to fill a specific field only if the field exists on the issue screen. Else - If the field does not exist, the rule should not attempt to fill it.

Currently, I am encountering an error message: 'The set fields may be unavailable for this project/type'

How can I build this rule correctly?

Screenshot 2025-02-11 174827.png

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.
February 11, 2025

Hi @Eliyahu Klein --CNTR 

That is likely possible by calling the REST API endpoint (with the Send Web Request action) to get the create issue metadata for the specific project and issue type, and checking if the "set" operation is available.  Other than checking for a single field, that seems quite elaborate just to prevent a rule error.

Another alternative is if you know the issue type, the rule could use dynamic JSON to add (or not add) the field.

Kind regards,
Bill

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
TAGS
AUG Leaders

Atlassian Community Events