Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

web service

El fallahi Moncef February 19, 2018

Hi,

I know that the web service of issues return all informations about the issues, for exemple if an issues have 3 columns (key, name, type) the web service return all informations.

I need to know if it's possible to show for exemple the information of only (name, type) without key.

Thanks.

 

1 answer

1 accepted

0 votes
Answer accepted
Pedro Felgueiras
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
February 19, 2018

Hi @El fallahi Moncef

 

You can define the fields you want in the url 

rest/api/2/issue/KEY-1000?fields=summary%2Cpriority

 

Best regards, 

Pedro Felgueiras 

El fallahi Moncef February 19, 2018

Thanks a lot Pedro, it's help so match for a problem of slow.

I know now that u r strong on this, so i have another question,

Im trying to get issues and work with it on servicenow, but the problem is that im authenticated to the web service with an admin account, so it return all issues from JIRA, i need to show only issues that the current user can see. I have the current user name on servicenow is the same name of user on JIRA. 

Im asking if there is a solution to apply this filter on the url of web service, or there is another solution to do that.

Thanks.

Pedro Felgueiras
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
February 19, 2018

I'm not experienced in the servicenow, but for what I know in Jira you can't run the REST as another user. If the users have the same credentials you could try to pass them.

 

I suggest to mark this as resolved and open another issue to raise more viability for this. 

 

Best regards, 

Pedro Felgueiras

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events