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

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

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

Announcing the Jira automation template library!

Hi all,  After many months of work, I am delighted to announce the launch of the Jira Automation Template Library!  The Template Library is a new website dedicated to all things Jira au...

727 views 14 21
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