It's not the same without you
Join the community to find out what other Atlassian users are discussing, debating and creating.
Hello,
How can I auto create a closed issue every 11 weeks and assign it to specific engineer?
Thank you!
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.
Why?
If you only want to have one status it's easiest to create a workflow with one status
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I had not thought of that. I assumed that we were talking about an already existing workflow.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Agree with Jobin. I used the free version of "SR Escalation Service" for this.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I have multiple projects that use variations of the same base workflow. The variations depend on the requirements of the project or issue type. The variations mostly come in the form of new statuses ...
Connect with like-minded Atlassian users at free events near you!
Find a groupConnect with like-minded Atlassian users at free events near you!
Unfortunately there are no AUG chapters near you at the moment.
Start an AUGYou're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.