Forums

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

Script-Runner Post Function create a sub-task uses wrong Screen Scheme

Sven
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
April 13, 2017

Hi!

Our Project has two issue-types A (parent issue) and B (sub-task issue). Both have their own Screens and Screen-Schemes.

1. If I create a sub-task B in the parent-issue A (more -> create sub-task) it uses the right Screen Scheme. Everythings fine so far.

2. But if I create a sub-task B with a Post Function on a transition (script worklflow function) it uses the Screen-Scheme from parent-issue A but it normally should use its own Screen Scheme.

I don't know what I'm doing wrong...?

 

 

 

1 answer

1 accepted

1 vote
Answer accepted
Nic Brough -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.
April 13, 2017

I don't think you have understood how these things work together.

A post function is something that happens in a workflow.  You move from one status to another through a transition, and the post-function runs during that transition.

Post-functions have nothing to do with screens

An "issue type screen scheme" tells your project what "screen scheme" to use for each issue type, and those tell it which screen to use for create, edit and view.

In your description, JIRA is behaving correctly.  Sub-task B is using the screens you've told it to in the issue type screen scheme.

Sven
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
April 18, 2017

Thank you Nic.

You were right, we mistakenly used the wrong screen in our transition. 

 

Suggest an answer

Log in or Sign up to answer