assigneeType field in addComponent

14 views
Skip to first unread message

Suddenelfilio

unread,
Aug 25, 2010, 11:04:13 AM8/25/10
to jira-extended-webservice
Hello,

I am wondering what this field is for? I tried leaving it empty since
it does not correspond with any of the ui input fields when creating a
component, but then the call fails. When I fill in a random number the
call succeeds and as far as I can see the component is created.

regards,

Filip

Ath

unread,
Aug 26, 2010, 4:23:32 PM8/26/10
to jira-extended-webservice
Most likely (but I don't have much more info on it) it is the ID to
select the type of assignment that has to be made when a new issue for
this component is created, and no explicit assignee is provided. After
creating a component to your project you can configure this assignment
clicking on 'Select assignees for components', where the column
'Default Component Assignee' should be quite informative. I don't know
what values set up what options, but maybe you could figure that out
experimentally? I'd start with 0, 1 etc. and if that doesn't work, go
for 10000, 10001 etc. as the default ID-counters in Jira data often
start at 10000
I have been using 0 giving 'Project Default'.

HTH
Ath

Matt Doar

unread,
Aug 26, 2010, 4:43:20 PM8/26/10
to jira-extende...@googlegroups.com
Funny, I was just wondering about that very field yesterday. It's set
to zero in all the test code for MutableProjectComponent, which is
what the ProjectComponentManager class creates using it.
I bet it's for what Ath suggested and these values are eventually found in:

[mdoar@mdoar2-3 atlassian-jira-enterprise-4.1.1-source]$ grep public
./jira/src/java/com/atlassian/jira/project/AssigneeTypes.java
public static final long PROJECT_DEFAULT = 0;
public static final long COMPONENT_LEAD = 1;
public static final long PROJECT_LEAD = 2;
public static final long UNASSIGNED = 3;


~Matt

> --
> You received this message because you are subscribed to the Google Groups "jira-extended-webservice" group.
> To post to this group, send email to jira-extende...@googlegroups.com.
> To unsubscribe from this group, send email to jira-extended-webs...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/jira-extended-webservice?hl=en.
>
>

Ath

unread,
Aug 26, 2010, 4:51:07 PM8/26/10
to jira-extended-webservice
Thank you Matt, for the quick find!

On 26 aug, 22:43, Matt Doar <md...@pobox.com> wrote:
> Funny, I was just wondering about that very field yesterday. It's set
> to zero in all the test code for MutableProjectComponent, which is
> what the ProjectComponentManager class creates using it.
> I bet it's for what Ath suggested and these values are eventually found in:
>
> [mdoar@mdoar2-3 atlassian-jira-enterprise-4.1.1-source]$ grep public
> ./jira/src/java/com/atlassian/jira/project/AssigneeTypes.java
>     public static final long PROJECT_DEFAULT = 0;
>     public static final long COMPONENT_LEAD = 1;
>     public static final long PROJECT_LEAD = 2;
>     public static final long UNASSIGNED = 3;
>
> ~Matt
>
Reply all
Reply to author
Forward
0 new messages