Forums

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

Need a help with Script PostFunction

Kumar
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.
March 22, 2019 edited

Hi Team,

I have Two Workflows in my project and Two Issue types.

Workflow : Testing and Production

Issue types are : Change and  Release

 

Change issue type and related workflow is"Testing" Workflow and its status  

ToDo ---> Inprogress ----> Collect Info ---- > On Hold ----> Move to Development ----->

Testing ----------->Done

 

Release issuetype and related workflow is "Production" and its status 

ToDo ---> InProgress ---> Done

 

1) Now When i Create a issue with issue type "Change" and If i move the issue status from "In progress to Collect Info" a linked issue will Create automatically with issue type "Release"  

and here If that Linked issue status is "Done" then the Main issue status has to change automatically to "Move Development" status.

 

2) And now if i Move the Change issue status from "Move Development  to  Testing "  a another linked issue will create automatically with same "Release" issue type.

now If that linked issue is "Done" then the main issue"Change" has to move to "Done" status automatically.

 

can anyone please suggest me how to achieve this by using groovy script postfunction 

 

Thanks,

Kumar 

1 answer

0 votes
Alex Christensen
Community Champion
March 22, 2019

There's a lot of existing questions and answers on the Community that should help you piece this together. Without being in your instance, it's difficult to give you exact code, but these sources should help you out:

https://community.atlassian.com/t5/Jira-questions/Groovy-to-create-issues/qaq-p/818025

https://community.atlassian.com/t5/Jira-questions/How-to-set-issue-links-through-groovy-in-script-postfunction/qaq-p/713709

https://community.atlassian.com/t5/Jira-Core-questions/ScriptRunner-to-transition-linked-issue/qaq-p/351814

Suggest an answer

Log in or Sign up to answer