Contributing to OpenMRS

This page describes the how to submit changes into a repository of the OpenMRS organization.


  • First create an account on the OpenMRS Atlassian if you don't have one already.
  • Find out the ticket for the required functionality in the OpenMRS JIRA or create a new one.
  • Once the ticket status is "Ready for Work", claim the issue.

Submitting Changes

  1. Fork the concerned repository from the OpenMRS organization to your own GitHub account if it is not yet forked already (see
  2. Open up a terminal window and enter the following commands to create a new development branch

    # Store the repository and ticket to be worked on in variables
    OPENMRS_REPO_NAME="" # e.g. "openmrs-core"
    OPENMRS_TICKET_ID="" # e.g. "TRUNK-4445"
    GITHUB_ACCOUNT="" # e.g. "jdoe"
    # Checkout the repository
    # Add the connection to the OpenMRS repository
    git remote add upstream$OPENMRS_REPO_NAME
    # Update your master branch
    git pull upstream master
    # Checkout a new development branch
    git checkout -b $OPENMRS_TICKET_ID
  3. Commit your changes into git and push them to your GitHub account.

    # Review your changes and then submit them
    git status
    git add .
    git commit # see example commit message:
    # Push your branch to GitHub
    git push origin $OPENMRS_TICKET_ID
  4. Once you think you are done with the story, request a code review from another Bahmni developer. 
  5. Raise a pull request on the concerned repository in the OpenMRS organization and use the correct branch name for the same (see 
  6. Change the status of the card on the OpenMRS JIRA and add a comment to the card with a link to the pull request raised.
  7. Wait for feedback from the OpenMRS community.

More Information


The Bahmni documentation is licensed under Creative Commons Attribution-ShareAlike 4.0 International (CC BY-SA 4.0)