Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Make transition to the same point and create new issue.

I would like to create new issue from existing issue. I mean when an user sees "Issue A" and she/he clicks some button called like "Copy this issue" and new issue "Issue A" created with "Name", "Description", "Epic Link" of "Issue A".

I have the following workflow:

Workflow. Copy new issue.png

To do this, I used ScriptRunner PostFunction "Clones Issue and Links" of transition "Create new issue":


1. Go to workflows.

2. Select the workflow for your project A

3. Select the transition from the status that you want to trigger your post function. For example, the "To Do" transition.

4. Go to the post functions tab.

5. Click "Add post function"

6. Select "Script Post function" and click next.

7. Select "Clones Issue and Links"

 

It works perfectly, it creates new issue with all my requirements, however transition status is "Create new issue", however I would like to change status to "Open" from "Copy this issue" without clicking any button.

Schematically current behaviour looks like this:
- Status of "Issue A" is "Open". User clicks button "Copy this issue"
- Status of "Issue A" is "Copy this issue". New issue "issue B" is created


Schematically desired behaviour looks like this:
- Status of "Issue A" is "Open". User clicks button "Copy this issue"
- Status of "Issue A" is "Open". New issue "issue B" is created


Is it possible to achieve desired behaviour?

 

1 answer

1 accepted

1 vote
Answer accepted

Hello @zaharovvv_suek_ru

For your goal you dont need "copy this issue" status

You can create loop transition from "Open" -> "Open" and place postfunction on it.

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Posted in Jira Core

How to manage many similar workflows?

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 ...

3,881 views 11 5
Join discussion

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you