Hello, Need help
I have a request where customer wants a custom button named Create AC. when user clicks on it, it should t open create subtask issue dialog box and let the user create a subtask under a link type called "Acceptance criteria" and this button should be only available to feature issue type.
So far I used the xml raw script fragment from ScriptRunner to have a custom web item called create Acceptance Criteria and link it as a subtask.
below is the script to restrict the web item only to feature :
working script for a button to create subtask:
<web-item key='issuekey-123' name='ScriptRunner generated web item - Create Acceptance criteria' section='operations-restore' weight='1'>
<label>Add Acceptance Criteria</label>
<link linkId='link-create-constrained-subtask'>/jira/secure/CreateSubTaskIssue.jspa?parentIssueId=${issue.id}&pid=${issue.projectObject.id}&issuetype=14901</link>
<styleClass>issueaction-create-subtask</styleClass>
</web-item>
Yes, I used the ScriptRunner Fragment called Constrained issue web item custom button and behaviour script.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Spend the day sharpening your skills in Atlassian Cloud Organization Admin or Jira Administration, then take the exam onsite. Already ready? Take one - or more - of 12 different certification exams while you’re in Anaheim at Team' 25.
Learn more
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.