How to integrate Jira Atlassian with GitLab cloud? - gitlab

The current documentation does not match the new interfaces exactly but what I have being able to put together is displayed in the screenshots below.
What does work is:
When I push a comment to GitLab a link is built and links to the properly referenced JIRA ticket.
JIRA is added as a LHS menu item which opens link I define as Web URL (see below).
What does not work is:
The JIRA ticket does not display the comment.
On GitLab
My settings keep failing the integration test and I have no idea what the problem is.
myproject > Settings > Integrations
On JIRA CLOUD
I have created a user as per instructions in the docs
https://gitlab.com/help/user/project/integrations/jira
https://gitlab.com/gitlab-org/gitlab-ce/blob/8-13-stable/doc/project_services/jira.md
From what I can gather is if I want to comment I just have to mention a correctly formatted JIRA ticket ID and if I want to change the state of a ticket I need to set the correct Transition ID(s) which I can find in my JIRA workflow.
I am able to log in manually to JIRA with the "Gitlab Dev" user account, and post comments.
Has anyone else got this to work with the newer admin layouts?

Make sure that the Jira user you set up for the integration has the correct access permission to post comments on a Jira issue and also to transition the issue, if you’d like GitLab to also be able to do so.
Jira issue references and update comments will not work if the GitLab issue tracker is disabled.

Related

See activity log in Gitlab Issues

Is there a way in (standard, hosted) Gitlab to see a chronology of my activity? At times it would be useful for timesheeting to be able to see what issues I have worked on during the day.
Yes, according to the docs it's possible to view the most recent activity on a user profile page.

Search Gerrit changes by user access rights

We have a Gerrit with quite a huge namespace and projects environment and every project has different rights in a matter of code-review or workflow voting and submitting. I sometimes create a set of batch changes accross several projects and then I need reviewers to check and submit. Is there any way how to filter the search results to show only the project which the user searching them can review or submit? Currently, I usually send the results just based on the topic, but this approach still shows all the changes to the reviewers even if they don't have rights to review. Any ideas on how to do or workaround this?
This solution is not exactly what you search for but maybe it can help:
You can use the clause visibleto:'USER-or-GROUP' to match only changes that are visible to 'USER' or to anyone who is a member of 'GROUP'.
More info in Gerrit documentation here.

GitLab: How to display Wiki as start page instead of readme?

I want to have the start page of the wiki of a project in GitLab as general start page for the project. Is this possible?
This isn't currently possible. The only views available which you can find in /profile/preferences are activity and readme.
This is possible because there's a bug in gitlab does exactly what you want, but only
for logged in users accessing
a public wiki-only project
So i guess „It's not a bug, it's a feature" ;)
Update
Having checked the example repository in the above linked issue, what you're asking for seems to be the default behaviour on gitlab.com now for wiki-only projects (which means you have to go into the settings and disable the repository feature).
I just verified that by setting up a fresh wiki-only project and it shows empty wiki page as homepage which was introduced in 12.5.

using mail server to communicate with jira using api

im new to jira and its mail handlers.i want to use the jira's mail handlers to scan two folders in my mail box.and update two projects related to those folders. and i did that.
but now i want to extend that functionality.i want to keep the mails in those folders (stop mail handlers from deleting it after processing) and make it able to move issues/tasks across projects simply by moving the associated mail from the folder to the other folder. resulting in deletion of the original issue/task from that project and creating it in the other folder. please help in making this a possibility.
for those who didnt understand my problem: imagine im sending a cv for the post of php developer to a mail. when the reciepent checks it, he puts it in the php folder in his mailbox.so then a task is created in the project php developers. but next the reciepents thinks im more suitable in web developement rather than in php. so he just moves the mail from php folder to the web folder.so the existing task in php project gets deleted and a new task is created under web developement project. can i do this? if so how? please guide me..
Update
sigh..
i dont know how to work with corporate people. now the situation has changed. i hope you could help me with this one.sorry about the sudden change in the question..again...
now my boss wants sth like this.
i created a mail client using imap function to access mail services and retrieve those mails to a web function. theres no problem in that. but now my boss wants to handle jira through that same app aswell. means as like the my question when moving, putting a mail to a folder the app it self should comunicate with jira and make the necesary issue creation and deletion.. is this possible #Kuf?? if so please help. because my deadline is due Wednesday. and im almost there to panic..lol..please forgive me for changing questions like this. as it is not my will..
edit
I have seen that rest api does this. but how to use it? any answers?
The simplest way I found was to receive the emails in your main account and forward them to a second account, while saving a copy on the mail server. Than, tell Jira to pull the emails from the second email.
UPDATE
In the past, I've looked for a way to change Jira's email handler functionality, as you can see in this question here. It is impossible to achieve what you're asking using Jira's email handler because the way it works, it does not keep records of which emails were already read, Jira's service checks for new emails, ignores emails according the pre-defined filters (spam or user defined), handles the rest of the emails, and deletes them so it won't process them again.
The way I can think of to get the functionality you want is to re-write the email handler, you can get the source code, re-write it, and build it into your Jira app.
Another way, which i find easier, is to get all the emails into Jira, and from within Jira move the issues from one project to another. You can even create pre-defined buttons using Jira Scripting Suite to easily move issues between projects (create a post function and attach it to workflow transition).
If you need any help let me know. Good luck!
EDIT 2
Which Jira version do you use? which actions are you planning to do using the remote API? Jira REST API is the newest, but some of the old APIs have capabilities that are lacking in REST. To try and decide which API suits you, have a a look at JIRA Remote API Reference.
If you decide to use the REST API, I suggest that you read Jira's Getting Started with REST manual, which shows how to use the REST API. For the full documentation check out JIRA REST API documentation (make sure to use the right version according to your Jira version).

Can you create Jira release notes from Cruise control or Nant?

I would like to include release notes with every release of our intranet project. We use Jira. Is there a way to generate the release notes automatically based on the fixes that were submitted to SVN? We usually check the files back with the jira key id.
vikasde,
To my knowledge Jira does not offer a way to retrieve this information in a straight-forward manner on a jira number basis. However, it has been quite some time since I looked into this. Jira does generate release notes for all jiras contained within a release (fixes checked in or not). What I have done in the past, as part of the release build, is to have a script retrieve the contents of the "Edit/Copy Release Notes" jira url and paste that into an xml file stored within the build products. If there is a better way to achieve this functionality I would definitely be interested as well.
EDIT: It appears that starting in Jira 3.5 you can retrieve issues by id through the soap interface.

Resources