Forums

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

Create story issue type from Feature issue type screen

sunil tattimani May 13, 2019

Hi Jira Experts,

 

I am in a situation where i have been asked to implement below scenario

 

Create a button called " create story" in feature issue type screen and when user clicks on the "create story" button from Feature screen ( workflow) he gets the "story create" screen and fills in all the fields and submits. It should create an issuetype of story. 

 I tried following 

Opened the feature workflow, added a transition ID "create story" with existing step namen  and Linked Status ( To Do) with story create screen. This gave me the story create button and when i click on the button it pops up the create story screen but it is updating the same feature and not creating new story. 

I have attached the feature screen for your reference.

 

Expected: It should create a story from feature screenJira_feature screen.png

Could someone guide me to achieve this workflow implementation ?

 

Regards,

Sunil 

 

 

2 answers

0 votes
sunil tattimani May 13, 2019

Hi Tarun,

 

Thank you very much. I tried your solution, now the problem i have is, story creation is not dedicated to a single project. Features are created in a dedicated project called "A". The features created in this project are related to across other projects ( other projects  "B" and "C" are restricted to have story, bug).  When i click "create story" from project "A" it might be related to either project "B" or "C". But here in the post function the clone functionality is restricted to a single project.(i.e Target project can be a single project ) . With this i end up creating story in a dedicated project only.

 

Regards,

Sunil

Tarun Sapra
Community Champion
May 14, 2019

Hello @sunil tattimani 

You can have multiple post-functions, each post-function dedicated to one project.

If you want even more number of projects then you can create a custom script listener as well.

If you feel my answer has helped you , please accept/upvote. thanks.

Like sunil tattimani likes this
sunil tattimani May 14, 2019

Hi Tarun,

I dont think adding multiple post functions to a single workflow would solve my problem.

Post function.png

Please see the attachment above where single feature workflow has multiple post functions and when story is created, it is going to create in all the projects at a time simultaneously. 

My need was to create story from project 'A' selectively either in project "B" or "C" and not in both "B" and "C" simultaneously.

Tarun Sapra
Community Champion
May 15, 2019

Hello @sunil tattimani 

"My need was to create story from project 'A' selectively either in project "B" or "C" and not in both "B" and "C" simultaneously."

You can easily add condition in each post-function and based on that condition the post-function will be executed or not executed. The condition should be based on your selective criteria to go ahead with either project "B" or project "C"

0 votes
Tarun Sapra
Community Champion
May 13, 2019

Hello @sunil tattimani 

You are on right track, you have already added a transition for "creat story" and on the transition screen you can fill the fields for the story. Then you add a post-function on this transition, this post-function comes from script runner plugin to "clone" an issue. And instead of cloning you can submit the details of creating a new story in a dedicated project and the new story can have the fields filled by the user on the transition screen.

Suggest an answer

Log in or Sign up to answer