Hello,
I would like to have a workflow where if i click on 'Resolve' the ticket it automatically raises another issue. Is that possible in Jira Cloud?
Best
Máté
You would need an add-on for it.
For example, you could use the Power Scripts add-on:
https://marketplace.atlassian.com/apps/43318/power-scripts-jira-script-automation?hosting=cloud&tab=overview
You could create a post function for the Resolve transition, which would create another issue. You can find an example of such a code here:
https://confluence.cprime.io/display/SIL/createIssue
Allrighty so i have tried everything and it still doesnt work. Which variables would you need in order to make it work, could you maybe send a screenshot how the issue looks in the backend and then i can compare it to mine. Sorry for the many questions, im kind of a noob in this
Thanks a lot for all your help!
Thanks very much for your answer Alexey,
Could you maybe help me how to implement this exactly?
Im having trouble with it, it does not seem to work.
Thanks
You need to install first the Power Scripts add-on. Then you need to add a post function to the transition, which leads to the Resolved status with a code like this:
//Possible values: "Major", "Critical" etc.string issue_description;string issue_security_level; issue_priority =<span> </span>"Critical";issue_description =<span> </span>"Description of the issue";issue_security_level =<span> </span>"Administrator";string k = createIssue( "PROJECT", "",<span> </span>// passing in empty to create a regular issue rather than subtask "Bug", "Summary of the sub task" , issue_priority, issue_description, {},<span> </span>// no components currentDate() +<span> </span>"30d", "1h 30m", issue_security_level, {}<span> </span>// and no custom field mappings );string issue_priority;
//Possible values: "Major", "Critical" etc.
string issue_description;
string issue_security_level;
issue_priority =<span> </span>
"Critical"
;
issue_description =<span> </span>
"Description of the issue"
issue_security_level =<span> </span>
"Administrator"
string k = createIssue(
"PROJECT"
,
""
<span> </span>
// passing in empty to create a regular issue rather than subtask
"Bug"
"Summary of the sub task"
issue_priority,
issue_description,
{},
// no components
currentDate() +<span> </span>
"30d"
"1h 30m"
issue_security_level,
{}
// and no custom field mappings
);
Thanks a lot, however this code gives me an <EOF> error at line 18.
It looks like you're new here. Sign in or register to get started.