# In Brightspace

Follow the steps below to create a new CodeGrade assignment in Brightspace:

1. Navigate to the homepage of the course to create the assignment in.
2. Click the **"Content"** button at the top of the page.
3. In the **"Add Existing Activities"** dropdown, click *"CodeGrade"* to open a new dialog.
4. In the new CodeGrade dialog, provide the name and deadline of the assignment and press **"Create assignment".** You can optionally also set the "Available at" and "Locked at" dates.

Making it a graded assignment:

1. Click on the CodeGrade assignment to open it (if it opens in a new tab, open the Brightspace tab to the left of it).
2. In Brightspace, you now see the possibility to add a Grade item. ([Learn more about Grade Items in Brightspace (D2L documentation)](https://documentation.brightspace.com/EN/le/grades/instructor/creating_grade_items.htm)
3. After adding a Grade item, relaunch the CodeGrade assignment and it now is a graded assignment!

{% hint style="success" %}
Grades are automatically sent back to Brightspace after setting [the **assignment state** to **Done** in CodeGrade.](https://help.codegrade.com/faq/releasing-grades-and-feedback) While the assignment is in the **Done** state, all grades and changes to grades are immediately sent back to Brightspace.
{% endhint %}

Next up, we can set the General settings of the CodeGrade assignment:

{% content-ref url="../general-settings" %}
[general-settings](https://help.codegrade.com/setup-assignment/build-assignment/general-settings)
{% endcontent-ref %}
