Forums

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

Set date with lookup table and automation

Lana Kelly
Contributor
September 19, 2023

Hello,

More questions on automation lookup tables.

I am trying to create an automation that sets a due date based on a custom field duration chosen by the user.  The custom field is a single choice selector, and here is the automation I have so far.

Screenshot 2023-09-19 at 10.53.12.png

Screenshot 2023-09-19 at 10.53.28.pngScreenshot 2023-09-19 at 10.53.37.pngThe audit log says that the get command isn't actually pulling anything, so there's something in the syntax I obviously don't understand.

Any help you could provide would be great, thank you!

1 answer

1 accepted

3 votes
Answer accepted
Tessa Tuteleers
Community Champion
September 19, 2023

Hi @Lana Kelly , 

A couple of things I notce without actually running the rule: 

  1. You need to call on your select field like this:
    {{issue.fields.Mitigation due}} -> use the actual name with spaces and all
  2. Your value is composed wrong: 
    {{now.plusDays(1)}} -> do not forget the "."

Please try these adjustments, it should work then. 
Hope this helps!

- Tessa

Lana Kelly
Contributor
September 19, 2023

Hi @Tessa Tuteleers 

Thanks so much for your help.  I had originally had the . but didn't have the space for the field part.  It worked perfectly once I added that.  Thank you!

It's so confusing, because some fields don't have the spaces (affectedVersion and dueDate, for example), so I was going off the documentation I could find.  Thank you again for your help!

Like Tessa Tuteleers likes this
Tessa Tuteleers
Community Champion
September 19, 2023

Hi @Lana Kelly , 

those are jira fields (not custom fields), they often have a different notation, it is indeed confusing! 

If the answer helped, please mark it with "Accept answer", this way, other users having a similar question will find the solution faster. 

Have a great day! 

- Tessa

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 19, 2023

Hi @Lana Kelly 

Yes, and...to Tessa's answer:

Smart values are name, spacing, and case-sensitive, and so it can sometimes be unclear what to use in rules for a field.  To find the smart value for a field, and if it is supported by rules, this how-to article can help.  Essentially you find an example issue with your field, call a REST API function with a browser, and then search for your field to find the smart value.

https://support.atlassian.com/cloud-automation/docs/find-the-smart-value-for-a-field/

Kind regards,
Bill

Lana Kelly
Contributor
September 19, 2023

Thanks @Bill Sheboy I'm sure that will come in handy in the future.  It seems I'm doing Jira configs every day!

Like Bill Sheboy likes this

Suggest an answer

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

Atlassian Community Events