Hi team! Here's what I'm trying to do - and there are a couple routes that I think might get me there.
I'm creating a jira automation. What i want it to do is look at an issue, look at all the subtasks on that issue, find those subtasks due dates, and print the whole "project timeline" into the description of the main issue, for visibility's sake.
Theory 1: I can use JQL.
Well, I can use a JQL lookup to get the subtasks. But the {{lookupItems}} variable doesn't give me access to all of the subtasks' fields - and due date isn't on the list of fields I get access to. So that's not going to work.
Theory 2: I can use the subtasks loop.
If I open up a branch to loop through the subtasks of the parent issue, then I can get the subtasks' due dates, but I can't set them to a variable that I could then use outside of the loop, I don't think. I tried creating a variable outside the subtasks loop, then re-assigning that variable inside the loop, but it didn't work (Screenshots attached).
So. I'm stuck. Is there a way to concatenate values and put them in a smart variable, as I've tried to do here? Then I could separate the string into a list and iterate through.
Or: is there a way to query more fields from the lookup issues action? I just want to be able to reference the due dates on subtasks! It feels like that should be possible!
[ EDIT ]: I have, since posting this, looked into using webhooks! However, I would basically then be using entity properties as just temporary memory for a variable. Within the subtask loop, I would have to GET-request the "duedates" entity property on the parent issue, then POST-request that entity again with the "old value + this issue's duedate". which would be, for an issue with 8 subtasks, 16 different http requests just to build an array. which seems WILDLY inefficient.
I'm now looking at entity properties in general as a solution... any further insights here, team?
Hello Clara
Thanks for writing to us and doing so much of research
Can you try something like this:
Cheers
Sherry
Oh my god it was this simple and i was out here considering creating a lambda server for webhooks like an absolute madwoman. I had no idea variables could have spaces in them, so I'd tried duedate and dueDate....
This worked perfectly. Thank you!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Clara Beyer No worries. Glad it worked out!
Cheers
Sherry
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.