You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.
View groupJoin the community to find out what other Atlassian users are discussing, debating and creating.
Hello,
Is it possible to open a Create Sub-Task screen from a web item button in Scriprunner?
Background:
We would like to have a button on an issue to create a subtask of a specific type.
As far as I can see only Create issue is supported, not create subtask.
Best regards
Filip
I've added a bit to the docn. It's not ideal but might be good enough for you.
You may wish to create a subtask of the current issue (or any other issue) at a particular stage.
We currently don’t have support via the UI for this (SRJIRA-2162). But you can do it with a raw XML fragment, with the caveat that the form will open in full-screen mode.
Reminder, pressing the Preview button generates the XML for any web fragment, which you can modify and submit via the raw xml module built-in script.
The XML to use is for example:
<web-item key='link-create-subtask' name='ScriptRunner generated web item - create-subtask' section='operations-operations' weight='1'>
<label>Create Linked Subbie</label>
<link linkId='link-create-constrained-subtask'>/jira/secure/CreateSubTaskIssue.jspa?parentIssueId=${issue.id}&pid=${issue.projectObject.id}&issuetype=10004</link>
</web-item>
Set the issue type ID of the subtask, and set the context path correctly, in the case of the example above it is /jira.
Thank you Jamie.
We tried it now.
It works, but the full-screen mode is not beautiful.
Do you think it will be possible to solve with a dialog like the built-in create-subtask? (if/when SRJIRA-2162 is implemented)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
To make as a dialog like the built-in create-subtask, you need to add a class:
<styleClass>issueaction-create-subtask</styleClass>
So, add on the XML example by @JamieA, it becomes:
<web-item key='link-create-subtask' name='ScriptRunner generated web item - create-subtask' section='operations-operations' weight='1'> <label>Create Linked Subbie</label>
<styleClass>issueaction-create-subtask</styleClass>
<link linkId='link-create-constrained-subtask'>/jira/secure/CreateSubTaskIssue.jspa?parentIssueId=${issue.id}&pid=${issue.projectObject.id}&issuetype=10004</link>
</web-item>
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello,
You can create sub-tasks from the parent's screen by choosing More -> Create subtask
You can use the Behaviour plugin (part of Scriptrunner) to pre-populate it with values
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello,
What our business requested is a specific button to create a sub-task of specific type.
Like "Create Approval Request" that brings up create sub-task screen with Issue Type set to "Approval Request"
Br
Filip
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The manager’s daily activities include a list of challenges to reach high levels of efficiency for their teams. Part of these challenges is related to how to deal with the worklog systems sin...
Connect with like-minded Atlassian users at free events near you!
Find an eventConnect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.
Host an eventYou're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.