Forums

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

Auto Create a closed issue

Elif Alverson
Contributor
October 26, 2015

Hello, 

How can I auto create a closed issue every 11 weeks and assign it to specific engineer?

Thank you!

5 answers

2 votes
Jobin Kuruvilla [Adaptavist]
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.
October 26, 2015

You need to write a script or scheduled task that can do this. And you might also want to consider reopening the issue (if that makes sense). Even that will need a script or scheduled task.

1 vote
MattS
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.
October 26, 2015

Why? 

If you only want to have one status it's easiest to create a workflow with one status

Daniel Faba
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.
October 26, 2015

I had not thought of that. I assumed that we were talking about an already existing workflow.

0 votes
Elif Alverson
Contributor
October 27, 2015

Thank you for all the responses, but I think I could not explain what I need clearly. 

1- I need to create the same issue every 11 weeks.

2- I need to assign this issue to the same user every 11 weeks.

For some reason I cannot response you all when I get your feedbacks, it looks like I have to wait 24 hours every time I post a question!

 

Thank you for all the help!

Daniel Faba
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.
October 27, 2015

Point 1 - the first curl from my previous comment. To change the asignee (point 2): curl -D- -u admin:admin -X PUT --data '{"fields":{"assignee":{"name":"jira_user_name"}}}' -H "Content-Type: application/json" http://jira.example.com/jira/rest/api/latest/issue/TEST-1 (you need to know the issue key, i.e: TEST-1, so you'll have to extract it from the http response when creating) To do these operations every 11 weeks, you could set a schedule in a crontab.

0 votes
Daniel Faba
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.
October 26, 2015

One way could be using REST api, invoked from a cron schedule with curl.

You could create the issue with the following curl:

curl -D- -u admin:admin -X POST --data '{"fields":{"project":{"key":"TEST"},"summary":"this is a test","description":"yes, a test","issuetype":{"name":"Task"}}}' -H "Content-Type: application/json" http://jira.example.com/jira/rest/api/latest/issue/

And then you'll need to do the transitions through the workflow towards the "Done" status

curl -D- -u admin:admin -X POST --data '{"transition": { "id": "21"}}' -H "Content-Type: application/json" http://jira.example.com/jira/rest/api/latest/issue/TEST-2/transitions

Adapt the above example and put both lines in a cron schedule and you are done

 

0 votes
Deleted user October 26, 2015

Agree with Jobin. I used the free version of "SR Escalation Service" for this.

Suggest an answer

Log in or Sign up to answer
TAGS
atlassian, jira product discovery, jpd premium, product management, idea management, product discovery, jira premium, product planning, atlassian community, product development, roadmap planning, product prioritization, feature management

Introducing Jira Product Discovery Premium ✨

Jira Product Discovery Premium is now available! Get more visibility, control, and support to build products at scale.

Learn more
AUG Leaders

Atlassian Community Events