Is it possible to use the create variable action in Jira to store the entire issue object? I've used variables before, but only for simple values (text, date, number). However, I have a use case where I would like to store the entire issue object so that I could later reference parts of it from the same variable.
Example
Create variable
Name: myIssue
value: {{issue}}
Then later on I would like to reference {{myIssue.summary}}
Is this possible? I tried it, it didn't work, but I'm unsure if it's a syntax problem, a variable scope problem, or if the functionality simply doesn't exist.
Thanks for any advice.
No, not with a variable as the Create Variable action stores text values.
Some possible work-arounds are:
Kind regards,
Bill
Using Create Lookup Table is a great work-around. Thank you very much
Kind regards
Allam C.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello,
I'm not sure if this is possible.
What is your use case behind this? What do you want to achieve? Maybe we can find another solution to your use case.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Pavol.
Thank you for the quick reply. Here is a rundown of my scenario
Issue A is in project 1
Issue B is in project 2
Whenever Issue A goes through a specific transition, I want to modify the description of Issue B with several information from Issue A. For the exercise let's say I want to add
What I am currently doing is I have an automation setup that is triggered when Issue A goes through said transition, and then modify Issue B using a related issue branch. The problem is when I am in the branch, {{issue}} is actually referring to Issue B.
My current solution is to use variables for each part of IssueA that I want to translate to Issue B. I just wanted to know if I could simply take the entire {{issue}} object and assign it to a variable instead of each piece.
Here are some images of my automation
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Apologies
I forgot to mention that in this scenario, Issue A and Issue B have a specific relationship.
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.