Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,363,949
Community Members
 
Community Events
168
Community Groups

Custom Field Value Is Always Blank

I have created a rule that will update a custom field based on the description. This successfully works, but when I try to include the value of the custom field it is always blank. I have two rules, one to update the custom field and another rule that will trigger an email. I thought because they are two different rules that it was the problem, but I created a test rule to update the customer field and then log the value of the custom field. It always returns empty.

Here is how I tried logging the value:

  • {{issue.fields.customfield_13141}}
  • {{issue.fields.customfield_13141.value}}
  • {{customfield_13141.value}}

My rule:

  • When: Issue created
    • For Current issue
      • Description contains
        • Severity: Critical
      • Then: Edit issue fields
        • Severity
      • And: Add value to the audit log.
        • {{issue.fields.customfield_13141}} {{issue.fields.customfield_13141.value}} {{customfield_13141.value}}

1 answer

0 votes

Hi @Michael 

Is the custom field you are trying to log the same field that you just modified within the rule?

If so, I believe it is logging the original value (at the point of trigger), not what you changed.  Please try adding a Re-fetch action after the edit and before the logging.  That reloads the issue into the rule context before proceeding.

Best regards,

Bill

Suggest an answer

Log in or Sign up to answer
TAGS

Atlassian Community Events