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

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

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

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
Community showcase
Published in Jira Automation

New to Jira Automation - goodbye Cron (sort of), hello new project created trigger, new additions to

Hey Everyone! Simeon from the Automation team here. I'm delighted to share some new features and improvements that we are shipping to Jira automation (Cloud only). Firstly, @Sam Harding&nbsp...

2,842 views 10 23
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you