Forums

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

Automation: create issue via smart value

Dreymann_ Thomas
Contributor
December 1, 2023

Hi all,

I try to open an JIRA bug ticket from a JSM Incident. You see, that I'm using assets für our responsible team and on this way I can open a Bug ticket in the right JIRA Project. That works fine.

 

Now I would like to ask the user, if he wants open a Story or a bug. I will do it via manually triggered and ask for these 2 values; so I have input in  the variable name. But what I have to write in the field issue type instead of the Bug? 

 

Hopefully somebody have a solution?

Best Regards,
Thomas 

 

image.png

3 answers

1 accepted

0 votes
Answer accepted
Jeroen Poismans
Community Champion
December 1, 2023

Hi there,

You say you already have the variable? Why don't you check the content of the varable in your rule and depending on what is in it create a different issue (with different issuetype):

Screenshot 2023-12-01 at 16.04.02.png

 

Something like this?

Dreymann_ Thomas
Contributor
December 4, 2023

Hi, 

Your message gave me the right impulse and I have to find an new way for my solution. Thanks for helping me!

Best Regrads
Thomas

0 votes
Mario R. February 27, 2024

Hi,

I had a similar problem and solved it by adding a lookup table: key was the name of the issuetype (like the user can choose from the manual trigger) and value was the id of the issuetype (took the id from /rest/api/2/issuetype).

Then in the "create issue" action the issue type is the smart value {{mylookuptable.get(userInputs.myissuetypevariable)}}.

I did this in the cloud version (don't know if this is possible onpremise).

Hope it helps :)

Best Regards,
Mario

0 votes
Marc - Devoteam
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.
December 1, 2023

Hi @Dreymann_ Thomas 

In my knowledge there is no smart value for a type of issue.

So to achieve this you would need 2 rules

Suggest an answer

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

Atlassian Community Events