I am trying to write an automation rule to update a parent Feature "Target start" date with the earliest child epic "Target start" date. I have the automation setup to branch on the Epic Parent link. I can find the earliest child epic start date by using the "issue in childIssuesOf({{issue.key}} ORDER BY cf[1234] ASC" - but I cannot seem to get the child epic start date by using the "lookupIssues" smart value to update the parent feature. In much googling it looks like this may not be supported but all LLM's are saying it should be. Any inputs on feature availability?
If this is supported, I have tried {{lookupIssues.customfield_1234}} and various permutations of to no avail - any tips?
Hi @Joe Palmer
Welcome to the Atlassian University!
I have this automation, which finds a ticket where the Provider Name field is the same, it finds that first ticket and links the rest tickets to that one.
See, if this will help, we can do some adjustments.
Can you share the details behind the "Edit issue fields" step? as I mentioned below it seems since I can fetch the child epic key with {{lookupIssues.first.key}} I would think I can use that to fetch a value from that child as a way to work around the lack of field support in lookupIssues -Not sure if thats what you did in this case?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Dear @Joe Palmer
Yes, here is the screen.
Also, this is the lookup jql
project = INC AND "Provider Name" = "{{issue.Provider Name}}" AND key != {{issue.key}} and issuetype = incident and reporter = Fatal_Monitoring and statuscategory != done ORDER BY created ASC
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Joe Palmer -- Welcome to the Atlassian Community!
You appear to be using Jira Server or Data Center version. Is that correct?
If so, the Lookup Issues action only supports a limited number of fields currently, and the result you found from the bot-guesser search is using information from Jira Cloud automation. Here is the suggestion to add the other fields for Server / Data Center:
https://jira.atlassian.com/browse/JIRAAUTOSERVER-877
The workaround for your scenario is using the REST API endpoint for an issue search with the JQL, rather than using the Lookup Issues action. That will provide all of the fields. Please see this related post I wrote which describes the technique:
Kind regards,
Bill
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks for the quick reply Bill!
I believe it is indeed Jira Server.
It seems that after having the list sorted by "issue in childIssuesOf({{issue.key}} ORDER BY cf[1234] ASC" I could use the lookupIssues.first.key to get the child epic Key of the earliest start date...now that I have that, I figured there is another method to fetch the "target state" by referencing that key. Can you think of any viable methods using this approach? I tried creating a variable out of that key but wasn't sure where to go next
I was hoping to avoid use of the REST API, but will if I have to!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Gor Greyan @Bill Sheboy Can you think of how this might work?
Create variable minKey = {lookupIssues.first.key}
update parent start date to {{issue(minKey).fields.customfield_1234.jiraDate}}
The second line doesn't work, but it could be my syntax, I am still very new to this!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The lookup result for Server / Data Center only contains these fields, and not the custom fields such as Target Start:
You describe wanting to update the parent's field from the child with the earliest Target Start date. That means the rule cannot branch to the child to get the date AND branch to the parent to make the edit.
That is why the REST API call is needed as it will have a web response smart value which may be used in place of {{lookupIssues}} to get the custom field.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.