Hello,
Is there a way to hide configure fields only for certain issue types?
Regards,
Vidhya
after creating project, i am using following jelly tag to set permission scheme through jelly script runner
<jira:SelectProjectScheme projectKey="JIRA" permission-scheme="JIRA Permission Scheme"/>
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi there,
When creating a project via SOAP, you need to provide a permission scheme and you can't simply send a string. It needs to be a {{remotePermissionScheme}} object because when that gets converted to the SOAP XML format in the request it will look different than just a string and that's what JIRA expects.
For example:
final RemotePermissionScheme permissionScheme = new RemotePermissionScheme();
permissionScheme.setId(0L);
final RemoteProject project = soapy.createProject(token, "TESTD", "Test Proj D", "", "", "contour", permissionScheme, null, null);
The above will work while the below wont:
final RemoteProject project = soapy.createProject(token, "TESTD", "Test Proj D", "", "", "contour", null, null, null);
The permissionScheme can't be a string, it needs to be a permissionScheme SOAP object with the id of the permission scheme filled in.
Cheers,
Pedro
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks for your response!
Actually i created project through post function not through SOAP
following code i am using to set permission scheme
UpdateProjectSchemesValidationResult schemesResult = projectService.validateUpdateProjectSchemes(loggedInUser,permissionSchemeId,notificationSchemeId,issueSecuritySchemeId);
errors.addErrorCollection(schemesResult.getErrorCollection());
if (!errors.hasAnyErrors()) { // adding schemes to Project projectService.updateProjectSchemes(schemesResult, newProject); }
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Don't mind me saying this, it looks terribly odd trying to create projects in post functions :(
Can you give a bit more details into the usecase (while I accept that I am not solving your problem by asking this)?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Renjith,
we are getting number of requests to create new projects based on existing project so i created post function to create project and copy all the configurations from the base project. all the configurations are copied as expected and i am facing the problem while copying permission scheme.
some times it is copying from base project and some times it is not and it is setting null, when i am trying to change null value to some other schem getting the NPE
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
So, you created a project via Jira API. Obviously something is missing there. Where do you have that NPE ? Can you post the stack trace ? Otherwise, I'm not sure that you will get an answer right away.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
any help on this?
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.