Dears,
i have 2 issue types Type 1 and Type 2
i need to block the user from creating type 2 using create button, as from the ticket created as Type 1 i have a transition to create a ticket with issue type = Type 2 and link it to Type 1 ticket.
I succeeded with blocking the users from creating issues of type1 but the transition of type 1 is not anymore working,
under the workflow of Type 1 i add create linked issue of type 2
Create Issue
Summary: Off Boarding %original_summary%
Description: This is an off boarding ticket created automatically via the worflow
Project: Original project
Issue type: Off Boarding (10602)
Priority: Parent's priority
Reporter: Current user
Assignee: Parent issue's assignee
Affected versions: None
Fixed versions: None
Components: Parent issue's components
Link: %original_key%, Link type: Relates, Link direction: From new issue to issue key
Copy original issue custom fields: Employee,Job Title
under the workflow of Type 2 i added this code under validator of create transition
if(issue.getLinkedIssues().size>0){
Issue issue = issue.getLinkedIssues()[0]
if(issue.status.name == 'EMPLOYEE LEFT')
return true
else return false
}
else return falsethank you.