Forums

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

Roadmap Derivation - Automation (HELP NEEDED)

Sebastian Pechhold
Contributor
May 22, 2025

Hi Community,

I'm trying to sync a "Planned Delivery Date" from a JPD field to a linked Jira Epic.

My Setup:

  • Automation Rule triggers when a JPD Idea is linked to an Epic.
  • The rule is configured to edit the linkedIssue (the Epic).
  • I'm pulling the value from a JPD field (customfield_XXXXX) whose value, according to the API, is a JSON string (e.g., "{\\"start\\":\\"...",\\"end\\":\\"..."}").
  • My Smart Value for the date is: {{triggerIssue.customfield_XXXXX.jsonParse.end.jqlDate}} (intended to parse the JSON string and extract the date).
  • I'm writing the value into a Debug Text field on the Epic.

The Problem: The Automation Rule shows SUCCESS in the Audit log, but the Debug Text field on the Epic remains empty. The JPD field is populated, IDs are confirmed, and the rule structure is set to linkedIssue.

Question: Why isn't the Smart Value (with jsonParse) resolving to a value, or why isn't it being written to the field? Any debugging ideas would be greatly appreciated!

Screenshot 2025-05-22 at 12.41.01.png

1 answer

1 accepted

1 vote
Answer accepted
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.
May 22, 2025

Hi @Sebastian Pechhold 

First, there is no "jsonParse" function in automation rules.  What is the source where you learned that function as it is incorrect?  Some chat / bot perhaps?

There is a jsonStringToObject() function that will help parsing the JPD date format: https://support.atlassian.com/cloud-automation/docs/jira-smart-values-text-fields/#jsonStringToObject--

For example, to get the end date please try this:

{{jsonStringToObject(triggerIssue.customfield_12345).end}}

That value will be text.  When you need it as a Jira date format, add the toDate function:

{{jsonStringToObject(triggerIssue.customfield_12345).end.toDate}}

 

Next, what is your rule scope: single-project, multiple-project, or global?  The default is single-project scope rules, and they cannot modify work items in other projects.

 

Finally, your rule shows no branching.  How will it access the JPD date field in the Idea to update the Epic's field?

 

Kind regards,
Bill

Sebastian Pechhold
Contributor
May 23, 2025

Hey @Bill Sheboy ,

thank you. I changed the setup:

Screenshot 2025-05-23 at 08.53.09.png

To answer your previous question. Yes, i used Gemini before i got here :)

Project Target field (JPD) is not empty. It has a single date or a date from/to (mostly quartery)

Date format month June: 

{\"start\":\"2025-06-01\",\"end\":\"2025-06-30\"}

Time frame format Q2 April-June: 

{\"start\":\"2025-04-01\",\"end\":\"2025-06-30\"}

it is always the same "string" in postman.

Goal:

Transfer/sync this date to the linked epics/initiatives.

 

With my current setup, no actions were performed.

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.
May 23, 2025

Please post an image of the audit log details for the rule execution, expanding all the areas at the right side.  That may show why the rule did not update as expected.

Also, did you confirm the rule scope is multiple-project or global?  Otherwise that branch will not "see" the linked issues.

Sebastian Pechhold
Contributor
June 4, 2025

Thanks for your patience. I just linked an Epic to the idea. Nothings happens.

Screenshot 2025-06-04 at 11.29.43.pngScreenshot 2025-06-04 at 11.30.00.png

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.
June 4, 2025

At the right side of the log for those entries expand the details with the arrow > icon, and re-post the image.

That will show the issues involved and possibly indicate why this is happening.  For example, if the trigger issue is not an Idea, then you may not be finding the correct ones inside of the branch...leading to the condition to not match.

 

Triggering a rule on Work Item Linked is tricky, because no matter to which issue the link is added, the "trigger issue" is always based upon the direction of the link type.  Please see this great explanation from @Trudy Claspill on the topic:

https://community.atlassian.com/forums/Jira-questions/How-can-I-get-field-from-linked-issue/qaq-p/2807497#M1050229

 

Like Trudy Claspill likes this
Sebastian Pechhold
Contributor
June 5, 2025

It seems that rule is being triggered correctly. But the field is not mapped.

Screenshot 2025-06-06 at 07.58.40.png

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.
June 6, 2025

I just retested to confirm the behavior based on the link direction noted earlier:

When a "delivery" work item is linked to a JPD Idea, and the rule trigger is Work Item Linked...

  • the trigger issue is the "delivery" work item
  • the destination issue is the Idea

This happens regardless of where the link was added: from the Idea or from the "delivery" one.

 

As your rule is written, it assumes the trigger is the Idea, which is reversed from what happens.

To update the "delivery" one with the data from the Idea's date field, please try this:

  • trigger: work item linked
  • smart values condition:
    • first value: {{issue.issuetype.name}}
    • condition: does not equal
    • second value: Idea
  • smart values condition:
    • first value: {{destinationIssue.issuetype.name}}
    • condition: equals
    • second value: Idea
  • action: edit work item
    • setting your date from the destination issue's smart value...
{{jsonStringToObject(destinationIssue.customfield_10393).end.toDate}}

 

In that first Smart Values Condition, I generically tested the trigger one for "not an Idea".  You could change that to use the Field Values Condition to specifically test for your desired issue types (i.e., Epic or Initiative). 

However, please note well: if you are using team-managed projects to link to Ideas, the types will vary by project.  So perhaps use the type name to be certain of matches.

 

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events