Using Jira's API to add an attachment to an issue - jira

I was wondering if Jira's REST API supports the ability to add an attachment to an issue (existing or new) along with uploading the attachment too? Looking at the API documentation I did not see anything however maybe i missed something.

This looks like the method you're after:
http://docs.atlassian.com/jira/REST/latest/#id339692

After you create the issue, you can click on more actions tab of that particular issue.
You would be able to attach files and attach screenshot.
Correct me if I am wrong in understanding your requirement.
Thanks.

in Python:
jira = JIRA(options="Jira_Server_URL", basic_auth=("userID", "Password"))
jira.add_attachment(issue=issue, attachment="attachment_path")
Replace Jira_Server_URL, userID, Password and attachment_path accordingly.

Related

pass multiple parameters in wso2 apimanager 2.1.0

need to pass multiple parameters in wso2 api-manager, i looked into this blog, http://vvratha.blogspot.in/2015/01/adding-url-parameters-in-wso2-apimanager.html.
the author has mentioned how to do it,but she has mentioned to create a new sequence, not getting where(i mean, need the path to create a file) and name of the file.
NOTE: i m only using api-manager and not developer tooling.
You can create sequence file and upload it in publisher UI.
See https://docs.wso2.com/display/AM210/Adding+Mediation+Extensions#AddingMediationExtensions-CreateanduploadmanuallyintheAPIPublisher
docs.wso2.com/display/AM210/… if anybody faces the problem in future go through this link also addition to the above link mentioned by #Bee. Well this link was directly referred by the author of yenlo.com #RobBrouwers.

Adding TFS tasks (work item) via url

Currently i'm trying something out with TFS 2015. I red that it should be possible to add tasks (work-items) via the browser url. This is perfect for me if it is working like I expected :)
My current url (personal items removed)
https://{myurl}/tfs/DefaultCollection/{project}/_workItems#_a=new&witd=Task&[Title]=Do
this&[Original Estimate]=1&[Remaining
Work]=1&[??????PARENT?????]={??id??}&[System.AreaPath]={project}&[System.IterationPath]={project+iteration}
So far so good it's possible to add an item via the url, but I couldn't figure out how to add the parent link to the work item!
I've tried [Node Name], [Parent], [System.NodeName], but none of them worked.
Does anyone have an idea how to create the link? Or is it not possible?
tnx in advance
Try to use [System.Linktypes] or [System.LinkTypes.Hierarchy-Reverse]
Moreover, suggest you to use REST API just as debugthings mentioned. Work Items|Rest API If you haven't already, look at the information on getting started with these APIs.

Branch.io returns me a File Not Found

I'm trying the Branch.io API and I think I'm getting a weird problem because I'm not able to create my links properly: I can use the link for starting the app without parameter: this link http://4t3i.app.link/KDSYTMnSZs.
It works perfectly but as soon as I try to put some parameter following the doc for appending query parameters, it returns a File Not Found Webpage.
I tried:
https://4t3i.app.link/a/?&jobId=saucisse
https://4t3i.app.link/a?%24deeplink_path=article%2Fjan%2F123&%24fallback_url=https%3A%2F%2Fgoogle.com&channel=facebook&feature=affiliate&user_id=4562&name=Alex (that's the example they give)
I have the feeling I'm really missing something but no idea what. Is that so easy to add parameters: just a/ and then appending parameters??
Alex from Branch.io here:
We recently made a major back-end change to accommodate some new technical limitations that Apple imposed with iOS 9.3.1, and unfortunately it looks like we didn't fully update all our docs yet!
Your links are correct, but the /a is no longer necessary. So they would be:
https://4t3i.app.link?&jobId=saucisse
https://4t3i.app.link?%24deeplink_path=article%2Fjan%2F123&%24fallback_url=https%3A%2F%2Fgoogle.com&channel=facebook&feature=affiliate&user_id=4562&name=Alex
When you open these, you'll be able to see the link clicks coming through on this dashboard page
Thanks for noticing this. I'll make sure we get the documentation changedto reflect the new system.
Edit: also note that those examples above create new links with the specified parameters. If you simply want to append an additional parameter to an existing link, you'd do this: http://4t3i.app.link/KDSYTMnSZs?jobId=saucisse

Email Footer Issue jira

I am able to recive and send emails properly.
Email footer content is displaying "template.footer.text" instead of text.
please provide suggestions.
what are files i need to edit and location for files.
regards,
tousif shaikh.
I've never worked with Jira but I'd speculate you're missing a template file which probably live here:
atlassian-jira/WEB-INF/classes/templates/email/html/includes/
atlassian-jira/WEB-INF/classes/templates/email/text/includes/
You'll probably have better luck at the Jira forums which seems to have been based on yours truly :)
https://answers.atlassian.com/questions/

Automatically create comment when file attached to jira issue

Whenever an attachment is attached to an issue in Jira,I want to automatically create a comment.
The comment should be displaying the hyperlink to that attachment
Can anyone please help on how this can be done in Jira.
Thanks in Advance,
Naren.
JIRA gives you the option to add a comment when you attach a file to an issue. It sounds like you want the comment to be required instead of optional? And to have a link to the attachment in the comment. My first thought is that this sounds like a new issue operation that extends the AttachFile action in a plugin.

Resources