Forums

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

Jira Automation to start and complete the sprint

CK
September 29, 2022

I am trying to build a rule / trigger (Not JQL) which would start and complete the sprint based on below:

1. Start Sprint automatically as per the defined Sprint start date 

2. When all Issues = Story tagged to a particular sprint are moved to 'DONE' and equals defined  Sprint End date , sprint should automatically move to completed

2 answers

1 accepted

1 vote
Answer accepted
Christian Czaia [Decadis AG]
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 Champions.
January 3, 2013

Found a solution. Fixed the none option problem in the VM-file (issue has been fixed by Atlassian aswell) and edited my JS to sth. like this

<script type="text/javascript">
jQuery(document).ready(function($) {
 XX();
  JIRA.bind(JIRA.Events.NEW_CONTENT_ADDED, function (e,context) { XX(); });
});

function XX()
</script>

0 votes
RambanamP
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 Champions.
August 12, 2012

you need to add javascript file using webresource module in plugin insted of adding in description

find thesample webresource module below

<web-resource key="test-js" name="javascript">
        <dependency>jira.webresources:global-static</dependency>
        <description>JavaScript</description>
        <resource name="test.js" type="download" location="templates/js/test.js" />
        <context>atl.general</context>        
   </web-resource>

test.js file like

JIRA.bind(JIRA.Events.NEW_CONTENT_ADDED, function (e,context) {
AJS.$("#assign-to-me-trigger").hide()  
});

Christian Czaia [Decadis AG]
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 Champions.
August 13, 2012

Hey, I'll try that. Thank you in advance...

Christian Czaia [Decadis AG]
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 Champions.
August 21, 2012

Hey rambanam, one question, why does the javascript, if I use it in the field description, just fire once?

Cheers Christian

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events