Hi,
I have created an service desk Project for that i have created an workflow in that i have an Status(Create----->Inprogress---->Validation----->closed) So when the ticket is in the "Validation" stage I want to hide an Sub-Task creation form the "More" workflow button.
I don't want any body to create a sub-task when the Ticket is in Validation stage.
Any suggestions Please let me know.
Thanks,
Phani
Hi ,
I have figured it out "HOW TO HIDE THE CREATE SUB-TASK FROM MORE WORKFLOW BUTTON AT PARTICULAR STATUS IN JIRA TICKET" . To execute this need "Script Runner" Add-On.
so GoTo--->Admin Settings--->Add-On's--->Left Pannel List Script Runner--->Select Script Fragements--->Add New Item and Select 'Hide system or plugin UI element ' -----> In that in Hide What option select the "com.atlassian.jira.plugin.system.issueoperations:create-subtask" ------> In Condition run this script given below
def currentStatus = issue.status.name
!(currentStatus == "Done") // instead of 'Done' put your status in which status you want to hide the Create Sub-Task
and Update it .
That's It for me its working
Thanks,
Phani
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Phani,
The functionality you are looking for can only be achieved by Scripting using the ScriptRunner plugin and configuring a condition like the one below:
- if ("Done".equals(issue.getParentObject().getStatus) ) { return false }
For more reference, you can check the discussion below and the documentation od ScriptRunner:
- https://scriptrunner.adaptavist.com/latest/jira/quickstart.html
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Petter Gonçalves thanks for you response, actually I'm at learning stage on Scripting. Can you please help me out regards my request the links that you have provided i'm little confused and I just want when the Parent Ticket comes from "In-Progress --->Validation" status in the Validation status i dont want to create anybody creating the sub-tasks in that particular stage. Can you please provide me the Script for that.
Thanks,
Phani
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Petter Gonçalves thanks for you response, actually I'm at learning stage on Scripting. Can you please help me out regards my request the links that you have provided i'm little confused and I just want when the Parent Ticket comes from "In-Progress --->Validation" status in the Validation status i dont want to create anybody creating the sub-tasks in that particular stage. Can you please provide me the Script for that.
Thanks,
Phani
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.